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
2 changed files with 4 additions and 2 deletions

View File

@@ -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",

View File

@@ -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)
}))