1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-19 18:10:42 +01:00

Reduce some log levels (#1864)

This commit is contained in:
Pierre-Marie Padiou 2021-07-06 17:17:14 +02:00 committed by GitHub
parent 4ca5c62abb
commit 291c128cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1022,7 +1022,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
log.debug("not sending a new identical channel_update, current one was created {} days ago", age.toDays)
stay
case _ =>
log.info("refreshing channel_update announcement (reason={})", reason)
log.debug("refreshing channel_update announcement (reason={})", reason)
// we use GOTO instead of stay because we want to fire transitions
goto(NORMAL) using d.copy(channelUpdate = channelUpdate1) storing()
}
@ -1038,7 +1038,7 @@ class Channel(val nodeParams: NodeParams, val wallet: EclairWallet, remoteNodeId
cancelTimer(Reconnected.toString)
// if we have pending unsigned htlcs, then we cancel them and advertise the fact that the channel is now disabled
val d1 = if (d.commitments.localChanges.proposed.collectFirst { case add: UpdateAddHtlc => add }.isDefined) {
log.info("updating channel_update announcement (reason=disabled)")
log.debug("updating channel_update announcement (reason=disabled)")
val channelUpdate = Announcements.makeChannelUpdate(nodeParams.chainHash, nodeParams.privateKey, remoteNodeId, d.shortChannelId, d.channelUpdate.cltvExpiryDelta, d.channelUpdate.htlcMinimumMsat, d.channelUpdate.feeBaseMsat, d.channelUpdate.feeProportionalMillionths, d.commitments.capacity.toMilliSatoshi, enable = false)
d.commitments.localChanges.proposed.collect {
case add: UpdateAddHtlc => relayer ! RES_ADD_SETTLED(d.commitments.originChannels(add.id), add, HtlcResult.Disconnected(channelUpdate))