From 9380c59299c9e893ef7a633594e6cb1d9ff89639 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Wed, 3 Aug 2022 18:32:14 +0200 Subject: [PATCH] readd details to terminal --- htlcInterceptor.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htlcInterceptor.go b/htlcInterceptor.go index ef40684..ad742a1 100644 --- a/htlcInterceptor.go +++ b/htlcInterceptor.go @@ -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)) } @@ -226,7 +226,7 @@ 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()) } @@ -234,7 +234,7 @@ func (app *App) logHtlcEvents(ctx context.Context) error { 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()) @@ -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) }