routing: improve loggings for attempt result handling
This commit is contained in:
1 file changed
+2
-2
@@ -840,8 +840,8 @@ func (p *paymentLifecycle) handleSwitchErr(attempt *channeldb.HTLCAttempt,
|
|||||||
// case we can safely send a new payment attempt, and wait for its
|
// case we can safely send a new payment attempt, and wait for its
|
||||||
// result to be available.
|
// result to be available.
|
||||||
if errors.Is(sendErr, htlcswitch.ErrPaymentIDNotFound) {
|
if errors.Is(sendErr, htlcswitch.ErrPaymentIDNotFound) {
|
||||||
log.Debugf("Attempt ID %v for payment %v not found in the "+
|
log.Warnf("Failing attempt=%v for payment=%v as it's not "+
|
||||||
"Switch, retrying.", attempt.AttemptID, p.identifier)
|
"found in the Switch", attempt.AttemptID, p.identifier)
|
||||||
|
|
||||||
return p.failAttempt(attemptID, sendErr)
|
return p.failAttempt(attemptID, sendErr)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user