From 5a62528fd70caf4284cd8c36d7c481cc1aacfa9a Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Mon, 14 Oct 2024 14:24:12 +0200 Subject: [PATCH] routing: improve loggings for attempt result handling --- routing/payment_lifecycle.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routing/payment_lifecycle.go b/routing/payment_lifecycle.go index 033819fc0..a178371fa 100644 --- a/routing/payment_lifecycle.go +++ b/routing/payment_lifecycle.go @@ -840,8 +840,8 @@ func (p *paymentLifecycle) handleSwitchErr(attempt *channeldb.HTLCAttempt, // case we can safely send a new payment attempt, and wait for its // result to be available. if errors.Is(sendErr, htlcswitch.ErrPaymentIDNotFound) { - log.Debugf("Attempt ID %v for payment %v not found in the "+ - "Switch, retrying.", attempt.AttemptID, p.identifier) + log.Warnf("Failing attempt=%v for payment=%v as it's not "+ + "found in the Switch", attempt.AttemptID, p.identifier) return p.failAttempt(attemptID, sendErr) }