From 2d0775626369f211517e46fe3c72317cc92aba84 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Tue, 17 Mar 2020 13:22:32 +0100 Subject: [PATCH 1/2] routing: log amount for probability --- routing/pathfind.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routing/pathfind.go b/routing/pathfind.go index d9125cc4..549d3416 100644 --- a/routing/pathfind.go +++ b/routing/pathfind.go @@ -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) })) From 36e1b92e0c5bcb84937ec0b09558e267d02a611a Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Wed, 18 Mar 2020 13:06:05 +0100 Subject: [PATCH 2/2] routing: log reported success amount --- routing/missioncontrol.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routing/missioncontrol.go b/routing/missioncontrol.go index a590f20a..f140634f 100644 --- a/routing/missioncontrol.go +++ b/routing/missioncontrol.go @@ -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",