diff --git a/routing/payment_lifecycle.go b/routing/payment_lifecycle.go index a9c9d4ce..677e6c70 100644 --- a/routing/payment_lifecycle.go +++ b/routing/payment_lifecycle.go @@ -218,6 +218,9 @@ func (p *paymentLifecycle) createNewPaymentAttempt() (lnwire.ShortChannelID, p.payment, uint32(p.currentHeight), p.finalCLTVDelta, ) 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 // any of the routes we've found, then mark the payment // as permanently failed. diff --git a/rpcserver.go b/rpcserver.go index 3ec92c96..d8989883 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -3127,6 +3127,8 @@ func (r *rpcServer) dispatchPaymentIntent( // If the route failed, then we'll return a nil save err, but a non-nil // routing err. if routerErr != nil { + rpcsLog.Warnf("Unable to send payment: %v", routerErr) + return &paymentIntentResponse{ Err: routerErr, }, nil