routing: add log message.

This commit is contained in:
ziggie 2023-11-05 14:02:26 +01:00
parent a1678fa9b7
commit 1aa1e18b9f
No known key found for this signature in database
GPG Key ID: 1AFF9C4DCED6D666

View File

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