routing+lnrpc: fix log statements

This commit is contained in:
Oliver Gugger 2024-05-24 17:19:50 +02:00
parent a3cdae0f7a
commit 8865484fb7
No known key found for this signature in database
GPG Key ID: 8E4256593F177720
2 changed files with 4 additions and 4 deletions

View File

@ -1300,7 +1300,7 @@ func (s *Server) trackPayment(subscription routing.ControlTowerSubscriber,
// Otherwise, we will log and return the error as the stream has
// 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
}

View File

@ -273,9 +273,9 @@ func (p *paymentSession) RequestRoute(maxAmt, feeLimit lnwire.MilliSatoshi,
// client-side MTU that we'll attempt to respect at all times.
maxShardActive := p.payment.MaxShardAmt != nil
if maxShardActive && maxAmt > *p.payment.MaxShardAmt {
p.log.Debug("Clamping payment attempt from %v to %v due to "+
"max shard size of %v", maxAmt,
*p.payment.MaxShardAmt, maxAmt)
p.log.Debugf("Clamping payment attempt from %v to %v due to "+
"max shard size of %v", maxAmt, *p.payment.MaxShardAmt,
maxAmt)
maxAmt = *p.payment.MaxShardAmt
}