mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
routing: log preimage when it's failed to be saved to db
This commit is contained in:
parent
8f5c6e8367
commit
7ccb77269d
@ -558,7 +558,9 @@ func (p *paymentLifecycle) collectResult(attempt *channeldb.HTLCAttempt) (
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
log.Errorf("Unable to settle payment attempt: %v", err)
|
||||
log.Errorf("Error settling attempt %v for payment %v with "+
|
||||
"preimage %v: %v", attempt.AttemptID, p.identifier,
|
||||
result.Preimage, err)
|
||||
|
||||
// We won't mark the attempt as failed since we already have
|
||||
// the preimage.
|
||||
|
Loading…
Reference in New Issue
Block a user