From 3dade920d030f573a843d470691631c8154e67c4 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Tue, 10 Aug 2021 09:44:04 -0400 Subject: [PATCH] module: improve 04-channel logging (#323) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * module: improve 04-channel logging * update log Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com> --- modules/core/04-channel/keeper/packet.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/core/04-channel/keeper/packet.go b/modules/core/04-channel/keeper/packet.go index 5cfc7e3c14f..9794ff40a4e 100644 --- a/modules/core/04-channel/keeper/packet.go +++ b/modules/core/04-channel/keeper/packet.go @@ -151,7 +151,14 @@ func (k Keeper) SendPacket( ), }) - k.Logger(ctx).Info("packet sent", "packet", fmt.Sprintf("%v", packet)) + k.Logger(ctx).Info( + "packet sent", + "sequence", packet.GetSequence(), + "src_port", packet.GetSourcePort(), + "src_channel", packet.GetSourceChannel(), + "dst_port", packet.GetDestPort(), + "dst_channel", packet.GetDestChannel(), + ) return nil }