multi: optimize loggings around changes from blockbeat
This commit is contained in:
9 files changed
+62
-38
No files matched your search
@@ -479,7 +479,7 @@ func (c *ChannelArbitrator) Start(state *chanArbStartState,
|
||||
}
|
||||
}
|
||||
|
||||
log.Debugf("Starting ChannelArbitrator(%v), htlc_set=%v, state=%v",
|
||||
log.Tracef("Starting ChannelArbitrator(%v), htlc_set=%v, state=%v",
|
||||
c.cfg.ChanPoint, lnutils.SpewLogClosure(c.activeHTLCs),
|
||||
state.currentState)
|
||||
|
||||
@@ -2618,14 +2618,14 @@ func (c *ChannelArbitrator) replaceResolver(oldResolver,
|
||||
func (c *ChannelArbitrator) resolveContract(currentContract ContractResolver) {
|
||||
defer c.wg.Done()
|
||||
|
||||
log.Debugf("ChannelArbitrator(%v): attempting to resolve %T",
|
||||
log.Tracef("ChannelArbitrator(%v): attempting to resolve %T",
|
||||
c.cfg.ChanPoint, currentContract)
|
||||
|
||||
// Until the contract is fully resolved, we'll continue to iteratively
|
||||
// resolve the contract one step at a time.
|
||||
for !currentContract.IsResolved() {
|
||||
log.Debugf("ChannelArbitrator(%v): contract %T not yet resolved",
|
||||
c.cfg.ChanPoint, currentContract)
|
||||
log.Tracef("ChannelArbitrator(%v): contract %T not yet "+
|
||||
"resolved", c.cfg.ChanPoint, currentContract)
|
||||
|
||||
select {
|
||||
|
||||
|
||||
@@ -165,9 +165,8 @@ func (h *htlcOutgoingContestResolver) Resolve() (ContractResolver, error) {
|
||||
if newHeight >= expiry-1 {
|
||||
h.log.Infof("HTLC about to expire "+
|
||||
"(height=%v, expiry=%v), transforming "+
|
||||
"into timeout resolver", h,
|
||||
h.htlcResolution.ClaimOutpoint,
|
||||
newHeight, h.htlcResolution.Expiry)
|
||||
"into timeout resolver", newHeight,
|
||||
h.htlcResolution.Expiry)
|
||||
|
||||
return h.htlcTimeoutResolver, nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user