From 26d1f427dfa733edc0ee1e058fec1ccd4d609a27 Mon Sep 17 00:00:00 2001 From: bitromortac Date: Sat, 18 Feb 2023 09:46:21 +0100 Subject: [PATCH] routing: trace capacity in probability log --- routing/pathfind.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routing/pathfind.go b/routing/pathfind.go index f204591b6..3c5397224 100644 --- a/routing/pathfind.go +++ b/routing/pathfind.go @@ -649,9 +649,9 @@ func findPath(g *graphParams, r *RestrictParams, cfg *PathFindingConfig, log.Trace(newLogClosure(func() string { return fmt.Sprintf("path finding probability: fromnode=%v,"+ - " tonode=%v, amt=%v, probability=%v", + " tonode=%v, amt=%v, cap=%v, probability=%v", fromVertex, toNodeDist.node, amountToSend, - edgeProbability) + edge.capacity, edgeProbability) })) // If the probability is zero, there is no point in trying.