From df049ad755325c8a0b7ae089e7459793c2f01cdc Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 24 Nov 2020 14:16:03 +0100 Subject: [PATCH] routing: promote shard logs on resume and terminal failure to Info --- routing/payment_lifecycle.go | 4 ++-- routing/router.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/routing/payment_lifecycle.go b/routing/payment_lifecycle.go index aaebc5bfe..0e61dec1c 100644 --- a/routing/payment_lifecycle.go +++ b/routing/payment_lifecycle.go @@ -107,7 +107,7 @@ func (p *paymentLifecycle) resumePayment() ([32]byte, *route.Route, error) { for _, a := range payment.InFlightHTLCs() { a := a - log.Debugf("Resuming payment shard %v for hash %v", + log.Infof("Resuming payment shard %v for hash %v", a.AttemptID, p.paymentHash) shardHandler.collectResultAsync(&a.HTLCAttemptInfo) @@ -687,7 +687,7 @@ func (p *shardHandler) handleSendError(attempt *channeldb.HTLCAttemptInfo, return nil } - log.Debugf("Payment %v failed: final_outcome=%v, raw_err=%v", + log.Infof("Payment %v failed: final_outcome=%v, raw_err=%v", p.paymentHash, *reason, sendErr) err := p.router.cfg.Control.Fail(p.paymentHash, *reason) diff --git a/routing/router.go b/routing/router.go index af1e8d75f..4e4bcbefb 100644 --- a/routing/router.go +++ b/routing/router.go @@ -2006,8 +2006,8 @@ func (r *ChannelRouter) tryApplyChannelUpdate(rt *route.Route, // processSendError analyzes the error for the payment attempt received from the // switch and updates mission control and/or channel policies. Depending on the // error type, this error is either the final outcome of the payment or we need -// to continue with an alternative route. This is indicated by the boolean -// return value. +// to continue with an alternative route. A final outcome is indicated by a +// non-nil return value. func (r *ChannelRouter) processSendError(paymentID uint64, rt *route.Route, sendErr error) *channeldb.FailureReason {