routing: promote shard logs on resume and terminal failure to Info
This commit is contained in:
parent
f8493a7522
commit
df049ad755
@ -107,7 +107,7 @@ func (p *paymentLifecycle) resumePayment() ([32]byte, *route.Route, error) {
|
|||||||
for _, a := range payment.InFlightHTLCs() {
|
for _, a := range payment.InFlightHTLCs() {
|
||||||
a := a
|
a := a
|
||||||
|
|
||||||
log.Debugf("Resuming payment shard %v for hash %v",
|
log.Infof("Resuming payment shard %v for hash %v",
|
||||||
a.AttemptID, p.paymentHash)
|
a.AttemptID, p.paymentHash)
|
||||||
|
|
||||||
shardHandler.collectResultAsync(&a.HTLCAttemptInfo)
|
shardHandler.collectResultAsync(&a.HTLCAttemptInfo)
|
||||||
@ -687,7 +687,7 @@ func (p *shardHandler) handleSendError(attempt *channeldb.HTLCAttemptInfo,
|
|||||||
return nil
|
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)
|
p.paymentHash, *reason, sendErr)
|
||||||
|
|
||||||
err := p.router.cfg.Control.Fail(p.paymentHash, *reason)
|
err := p.router.cfg.Control.Fail(p.paymentHash, *reason)
|
||||||
|
@ -2006,8 +2006,8 @@ func (r *ChannelRouter) tryApplyChannelUpdate(rt *route.Route,
|
|||||||
// processSendError analyzes the error for the payment attempt received from the
|
// processSendError analyzes the error for the payment attempt received from the
|
||||||
// switch and updates mission control and/or channel policies. Depending on 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
|
// 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
|
// to continue with an alternative route. A final outcome is indicated by a
|
||||||
// return value.
|
// non-nil return value.
|
||||||
func (r *ChannelRouter) processSendError(paymentID uint64, rt *route.Route,
|
func (r *ChannelRouter) processSendError(paymentID uint64, rt *route.Route,
|
||||||
sendErr error) *channeldb.FailureReason {
|
sendErr error) *channeldb.FailureReason {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user