From 1aa1e18b9fec00d2d463d4c4953f9b513f4be866 Mon Sep 17 00:00:00 2001 From: ziggie Date: Sun, 5 Nov 2023 14:02:26 +0100 Subject: [PATCH] routing: add log message. --- routing/pathfind.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/routing/pathfind.go b/routing/pathfind.go index 091c18d92..642dab90b 100644 --- a/routing/pathfind.go +++ b/routing/pathfind.go @@ -586,6 +586,10 @@ func findPath(g *graphParams, r *RestrictParams, cfg *PathFindingConfig, // If the total outgoing balance isn't sufficient, it will be // impossible to complete the payment. if total < amt { + log.Warnf("Not enough outbound balance to send "+ + "htlc of amount: %v, only have local "+ + "balance: %v", amt, total) + return nil, 0, errInsufficientBalance }