Skip to content

Commit 5a62528

Browse files
committed
routing: improve loggings for attempt result handling
1 parent 1acf4d7 commit 5a62528

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routing/payment_lifecycle.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -840,8 +840,8 @@ func (p *paymentLifecycle) handleSwitchErr(attempt *channeldb.HTLCAttempt,
840840
// case we can safely send a new payment attempt, and wait for its
841841
// result to be available.
842842
if errors.Is(sendErr, htlcswitch.ErrPaymentIDNotFound) {
843-
log.Debugf("Attempt ID %v for payment %v not found in the "+
844-
"Switch, retrying.", attempt.AttemptID, p.identifier)
843+
log.Warnf("Failing attempt=%v for payment=%v as it's not "+
844+
"found in the Switch", attempt.AttemptID, p.identifier)
845845

846846
return p.failAttempt(attemptID, sendErr)
847847
}

0 commit comments

Comments
 (0)