mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-29 03:01:52 +01:00
routing+lnrpc: fix log statements
This commit is contained in:
parent
a3cdae0f7a
commit
8865484fb7
@ -1300,7 +1300,7 @@ func (s *Server) trackPayment(subscription routing.ControlTowerSubscriber,
|
|||||||
|
|
||||||
// Otherwise, we will log and return the error as the stream has
|
// Otherwise, we will log and return the error as the stream has
|
||||||
// received an error from the payment lifecycle.
|
// received an error from the payment lifecycle.
|
||||||
log.Errorf("TrackPayment got error for payment %x: %v", identifier, err)
|
log.Errorf("TrackPayment got error for payment %v: %v", identifier, err)
|
||||||
|
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -273,9 +273,9 @@ func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi,
|
|||||||
// client-side MTU that we'll attempt to respect at all times.
|
// client-side MTU that we'll attempt to respect at all times.
|
||||||
maxShardActive := p.payment.MaxShardAmt != nil
|
maxShardActive := p.payment.MaxShardAmt != nil
|
||||||
if maxShardActive && maxAmt > *p.payment.MaxShardAmt {
|
if maxShardActive && maxAmt > *p.payment.MaxShardAmt {
|
||||||
p.log.Debug("Clamping payment attempt from %v to %v due to "+
|
p.log.Debugf("Clamping payment attempt from %v to %v due to "+
|
||||||
"max shard size of %v", maxAmt,
|
"max shard size of %v", maxAmt, *p.payment.MaxShardAmt,
|
||||||
*p.payment.MaxShardAmt, maxAmt)
|
maxAmt)
|
||||||
|
|
||||||
maxAmt = *p.payment.MaxShardAmt
|
maxAmt = *p.payment.MaxShardAmt
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user