Skip to content

Commit

Permalink
routerrpc: only log in the err case.
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggie1984 committed Nov 3, 2024
1 parent ceda82c commit 00af7bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lnrpc/routerrpc/router_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1344,7 +1344,10 @@ 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 %v: %v", identifier, err)
if err != nil {
log.Errorf("TrackPayment got error for payment %v: %v",
identifier, err)
}

return err
}
Expand Down

0 comments on commit 00af7bc

Please sign in to comment.