mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-23 14:40:30 +01:00
Merge pull request #6124 from C-Otto/force-close-logging
contractcourt: use "info" log level for messages leading to force-closes
This commit is contained in:
commit
39c6236054
2 changed files with 8 additions and 6 deletions
|
@ -1523,7 +1523,7 @@ func (c *ChannelArbitrator) checkCommitChainActions(height uint32,
|
|||
)
|
||||
|
||||
if toChain {
|
||||
log.Debugf("ChannelArbitrator(%v): go to chain for "+
|
||||
log.Infof("ChannelArbitrator(%v): go to chain for "+
|
||||
"outgoing htlc %x: timeout=%v, "+
|
||||
"blocks_until_expiry=%v, broadcast_delta=%v",
|
||||
c.cfg.ChanPoint, htlc.RHash[:],
|
||||
|
@ -1554,7 +1554,7 @@ func (c *ChannelArbitrator) checkCommitChainActions(height uint32,
|
|||
)
|
||||
|
||||
if toChain {
|
||||
log.Debugf("ChannelArbitrator(%v): go to chain for "+
|
||||
log.Infof("ChannelArbitrator(%v): go to chain for "+
|
||||
"incoming htlc %x: timeout=%v, "+
|
||||
"blocks_until_expiry=%v, broadcast_delta=%v",
|
||||
c.cfg.ChanPoint, htlc.RHash[:],
|
||||
|
@ -1815,7 +1815,7 @@ func (c *ChannelArbitrator) checkRemoteChainActions(
|
|||
return nil, err
|
||||
}
|
||||
|
||||
// With this actions computed, we'll now check the diff of the HTLCs on
|
||||
// With these actions computed, we'll now check the diff of the HTLCs on
|
||||
// the commitments, and cancel back any that are on the pending but not
|
||||
// the non-pending.
|
||||
remoteDiffActions := c.checkRemoteDiffActions(
|
||||
|
@ -1863,7 +1863,7 @@ func (c *ChannelArbitrator) checkRemoteDiffActions(height uint32,
|
|||
actionMap[HtlcFailNowAction], htlc,
|
||||
)
|
||||
|
||||
log.Tracef("ChannelArbitrator(%v): immediately failing "+
|
||||
log.Infof("ChannelArbitrator(%v): immediately failing "+
|
||||
"htlc=%x from remote commitment",
|
||||
c.cfg.ChanPoint, htlc.RHash[:])
|
||||
}
|
||||
|
@ -1886,7 +1886,7 @@ func (c *ChannelArbitrator) constructChainActions(confCommitSet *CommitSet,
|
|||
return c.log.FetchChainActions()
|
||||
}
|
||||
|
||||
// Otherwise we have the full commitment set written to disk, and can
|
||||
// Otherwise, we have the full commitment set written to disk, and can
|
||||
// proceed as normal.
|
||||
htlcSets := confCommitSet.toActiveHTLCSets()
|
||||
switch *confCommitSet.ConfCommitKey {
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
## Documentation
|
||||
|
||||
* Improved instructions on [how to build lnd for mobile](https://github.com/lightningnetwork/lnd/pull/6085).
|
||||
* [Log force-close related messages on "info" level](https://github.com/lightningnetwork/lnd/pull/6124).
|
||||
|
||||
## Code Health
|
||||
|
||||
|
@ -58,6 +59,7 @@
|
|||
# Contributors (Alphabetical Order)
|
||||
|
||||
* Andreas Schjønhaug
|
||||
* Carsten Otto
|
||||
* Daniel McNally
|
||||
* ErikEk
|
||||
* Joost Jager
|
||||
|
|
Loading…
Add table
Reference in a new issue