rpcserver+router: log terminal sendPayment error
This commit is contained in:
1 parent
108f25dc89
commit
8b83f03308
2 files changed
+5
No files matched your search
@@ -218,6 +218,9 @@ func (p *paymentLifecycle) createNewPaymentAttempt() (lnwire.ShortChannelID,
|
|||||||
p.payment, uint32(p.currentHeight), p.finalCLTVDelta,
|
p.payment, uint32(p.currentHeight), p.finalCLTVDelta,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
log.Warnf("Failed to find route for payment %x: %v",
|
||||||
|
p.payment.PaymentHash, err)
|
||||||
|
|
||||||
// If we're unable to successfully make a payment using
|
// If we're unable to successfully make a payment using
|
||||||
// any of the routes we've found, then mark the payment
|
// any of the routes we've found, then mark the payment
|
||||||
// as permanently failed.
|
// as permanently failed.
|
||||||
|
|||||||
@@ -3127,6 +3127,8 @@ func (r *rpcServer) dispatchPaymentIntent(
|
|||||||
// If the route failed, then we'll return a nil save err, but a non-nil
|
// If the route failed, then we'll return a nil save err, but a non-nil
|
||||||
// routing err.
|
// routing err.
|
||||||
if routerErr != nil {
|
if routerErr != nil {
|
||||||
|
rpcsLog.Warnf("Unable to send payment: %v", routerErr)
|
||||||
|
|
||||||
return &paymentIntentResponse{
|
return &paymentIntentResponse{
|
||||||
Err: routerErr,
|
Err: routerErr,
|
||||||
}, nil
|
}, nil
|
||||||
|
|||||||
Reference in new issue
Block a user