routing: fix and enhance logging

This commit is contained in:
yyforyongyu
2023-11-06 16:39:30 +08:00
committed by yyforyongyu
parent b63e5decad
commit 0928ba0149
4 changed files with 12 additions and 8 deletions

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()