routing: fix and enhance logging

This commit is contained in:
yyforyongyu authored and yyforyongyu committed 2024-08-07 22:17:58 +08:00
1 parent b63e5decad
commit 0928ba0149
4 files changed
+12 -8

No files matched your search

+3
View File
@@ -1133,6 +1133,9 @@ func (r *ChannelRouter) SendToRouteSkipTempErr(htlcHash lntypes.Hash,
func (r *ChannelRouter) sendToRoute(htlcHash lntypes.Hash, rt *route.Route,
skipTempErr bool) (*channeldb.HTLCAttempt, error) {
log.Debugf("SendToRoute for payment %v with skipTempErr=%v",
htlcHash, skipTempErr)
// Calculate amount paid to receiver.
amt := rt.ReceiverAmt()