Skip to content

Commit

Permalink
readd details to terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Aug 3, 2022
1 parent 7a6c466 commit 9380c59
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions htlcInterceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ func (app *App) logHtlcEvents(ctx context.Context) error {
contextLogger.Infof("SettleEvent")
// contextLogger.Debugf("[forward] Preimage: %s", hex.EncodeToString(event.GetSettleEvent().Preimage))
} else {
log.Infof("[forward] ⚡️ HTLC SettleEvent")
log.Infof("[forward] ⚡️ HTLC SettleEvent (chan_id:%s, htlc_id:%d)", ParseChannelID(event.IncomingChannelId), event.IncomingHtlcId)
log.Debugf("[forward] Preimage: %s", hex.EncodeToString(event.GetSettleEvent().Preimage))
}

Expand All @@ -226,15 +226,15 @@ func (app *App) logHtlcEvents(ctx context.Context) error {
contextLogger.Infof("ForwardFailEvent")
// contextLogger.Debugf("[forward] Reason: %s", event.GetForwardFailEvent())
} else {
log.Infof("[forward] HTLC ForwardFailEvent")
log.Infof("[forward] HTLC ForwardFailEvent (chan_id:%s, htlc_id:%d)", ParseChannelID(event.IncomingChannelId), event.IncomingHtlcId)
// log.Debugf("[forward] Reason: %s", event.GetForwardFailEvent().String())
}

case *routerrpc.HtlcEvent_ForwardEvent:
if Configuration.LogJson {
contextLogger.Infof("ForwardEvent")
} else {
log.Infof("[forward] HTLC ForwardEvent")
log.Infof("[forward] HTLC ForwardEvent (chan_id:%s, htlc_id:%d)", ParseChannelID(event.IncomingChannelId), event.IncomingHtlcId)
}
// log.Infof("[forward] HTLC ForwardEvent (chan_id:%s, htlc_id:%d)", ParseChannelID(event.IncomingChannelId), event.IncomingHtlcId)
// log.Debugf("[forward] Details: %s", event.GetForwardEvent().String())
Expand All @@ -244,7 +244,7 @@ func (app *App) logHtlcEvents(ctx context.Context) error {
contextLogger.Infof("LinkFailEvent")
contextLogger.Debugf("[forward] Reason: %s", event.GetLinkFailEvent().FailureString)
} else {
log.Infof("[forward] HTLC LinkFailEvent")
log.Infof("[forward] HTLC LinkFailEvent (chan_id:%s, htlc_id:%d)", ParseChannelID(event.IncomingChannelId), event.IncomingHtlcId)
log.Debugf("[forward] Reason: %s", event.GetLinkFailEvent().FailureString)
}

Expand Down

0 comments on commit 9380c59

Please sign in to comment.