From c9713e0ddb0f144163883d8631a014a12aa8c708 Mon Sep 17 00:00:00 2001 From: Slyghtning Date: Thu, 16 May 2024 13:51:47 +0200 Subject: [PATCH] routing: log edge when skipping it --- routing/unified_edges.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/routing/unified_edges.go b/routing/unified_edges.go index 44efc6314e..232c92e1c6 100644 --- a/routing/unified_edges.go +++ b/routing/unified_edges.go @@ -279,14 +279,13 @@ func (u *edgeUnifier) getEdgeLocal(netAmtReceived lnwire.MilliSatoshi, } // We pick the local channel with the highest available - // bandwidth, to maximize the success probability. It - // can be that the channel state changes between - // querying the bandwidth hints and sending out the - // htlc. + // bandwidth, to maximize the success probability. It can be + // that the channel state changes between querying the bandwidth + // hints and sending out the htlc. if bandwidth < maxBandwidth { log.Debugf("Skipped edge %v: not max bandwidth, "+ "bandwidth=%v, maxBandwidth=%v", - bandwidth, maxBandwidth) + edge.policy.ChannelID, bandwidth, maxBandwidth) continue }