mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 21:35:24 +01:00
routing: add and fix log statements
This commit is contained in:
parent
ee40d3dd58
commit
b6d65752f7
@ -455,11 +455,17 @@ func (p *BimodalEstimator) probabilityFormula(capacityMsat, successAmountMsat,
|
||||
|
||||
// failAmount should be capacity at max.
|
||||
if failAmount > capacity {
|
||||
log.Debugf("Correcting failAmount %v to capacity %v",
|
||||
failAmount, capacity)
|
||||
|
||||
failAmount = capacity
|
||||
}
|
||||
|
||||
// successAmount should be capacity at max.
|
||||
if successAmount > capacity {
|
||||
log.Debugf("Correcting successAmount %v to capacity %v",
|
||||
successAmount, capacity)
|
||||
|
||||
successAmount = capacity
|
||||
}
|
||||
|
||||
@ -468,7 +474,7 @@ func (p *BimodalEstimator) probabilityFormula(capacityMsat, successAmountMsat,
|
||||
// happen if a large channel gets closed and smaller ones remain, but
|
||||
// it should recover with the time decay.
|
||||
if failAmount <= successAmount {
|
||||
log.Tracef("fail amount (%v) is larger than or equal the "+
|
||||
log.Tracef("fail amount (%v) is smaller than or equal the "+
|
||||
"success amount (%v) for capacity (%v)",
|
||||
failAmountMsat, successAmountMsat, capacityMsat)
|
||||
|
||||
|
@ -1689,7 +1689,7 @@ func (r *ChannelRouter) processUpdate(msg interface{},
|
||||
return err
|
||||
}
|
||||
|
||||
log.Debugf("New channel update applied: %v",
|
||||
log.Tracef("New channel update applied: %v",
|
||||
newLogClosure(func() string { return spew.Sdump(msg) }))
|
||||
r.stats.incNumChannelUpdates()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user