From 8865484fb756c57254fa195af78e348a344ed507 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Fri, 24 May 2024 17:19:50 +0200 Subject: [PATCH] routing+lnrpc: fix log statements --- lnrpc/routerrpc/router_server.go | 2 +- routing/payment_session.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lnrpc/routerrpc/router_server.go b/lnrpc/routerrpc/router_server.go index 9c8c54efb..2f5204695 100644 --- a/lnrpc/routerrpc/router_server.go +++ b/lnrpc/routerrpc/router_server.go @@ -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 } diff --git a/routing/payment_session.go b/routing/payment_session.go index e435b47d1..9ee4bdeac 100644 --- a/routing/payment_session.go +++ b/routing/payment_session.go @@ -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 }