Merge pull request #4114 from joostjager/routing-logging

routing+htlcswitch: logging improvements
This commit is contained in:
Joost Jager 2020-03-25 12:15:39 +01:00 committed by GitHub
commit 6e30dda54f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

@ -544,7 +544,8 @@ func (m *MissionControl) applyPaymentResult(
if pairResult.success {
log.Debugf("Reporting pair success to Mission "+
"Control: pair=%v", pair)
"Control: pair=%v, amt=%v",
pair, pairResult.amt)
} else {
log.Debugf("Reporting pair failure to Mission "+
"Control: pair=%v, amt=%v",

@ -584,7 +584,8 @@ func findPathInternal(
log.Trace(newLogClosure(func() string {
return fmt.Sprintf("path finding probability: fromnode=%v,"+
" tonode=%v, probability=%v", fromVertex, toNodeDist.node,
" tonode=%v, amt=%v, probability=%v",
fromVertex, toNodeDist.node, amountToSend,
edgeProbability)
}))