rpcserver+router: log terminal sendPayment error

This commit is contained in:
Johan T. Halseth authored and Olaoluwa Osuntokun committed 2019-07-01 16:22:57 -07:00
1 parent 108f25dc89
commit 8b83f03308
2 files changed
+5

No files matched your search

+3
View File
@@ -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.