mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
routerrpc: only log TrackPayment error if err is not nil
This commit is contained in:
parent
af8c8b4bb3
commit
e3b94e4578
1 changed files with 6 additions and 1 deletions
|
@ -1343,12 +1343,17 @@ func (s *Server) trackPayment(subscription routing.ControlTowerSubscriber,
|
|||
err := s.trackPaymentStream(
|
||||
stream.Context(), subscription, noInflightUpdates, stream.Send,
|
||||
)
|
||||
switch {
|
||||
case err == nil:
|
||||
return nil
|
||||
|
||||
// If the context is canceled, we don't return an error.
|
||||
if errors.Is(err, context.Canceled) {
|
||||
case errors.Is(err, context.Canceled):
|
||||
log.Infof("Payment stream %v canceled", identifier)
|
||||
|
||||
return nil
|
||||
|
||||
default:
|
||||
}
|
||||
|
||||
// Otherwise, we will log and return the error as the stream has
|
||||
|
|
Loading…
Add table
Reference in a new issue