From a8e899ea7f039d13889d979b155fa37a182bb79e Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Mon, 9 Aug 2021 09:29:12 -0400 Subject: [PATCH 1/2] module: improve 04-channel logging --- modules/core/04-channel/keeper/packet.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/core/04-channel/keeper/packet.go b/modules/core/04-channel/keeper/packet.go index 5cfc7e3c14f..1f6314495a7 100644 --- a/modules/core/04-channel/keeper/packet.go +++ b/modules/core/04-channel/keeper/packet.go @@ -151,7 +151,15 @@ 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(), + "data", fmt.Sprintf("%X", packet.GetData()), + ) return nil } From c2232c7a49ee3fdbb0780ef77d557e51972574d3 Mon Sep 17 00:00:00 2001 From: Aleksandr Bezobchuk Date: Tue, 10 Aug 2021 08:47:20 -0400 Subject: [PATCH 2/2] update log --- modules/core/04-channel/keeper/packet.go | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/core/04-channel/keeper/packet.go b/modules/core/04-channel/keeper/packet.go index 1f6314495a7..9794ff40a4e 100644 --- a/modules/core/04-channel/keeper/packet.go +++ b/modules/core/04-channel/keeper/packet.go @@ -158,7 +158,6 @@ func (k Keeper) SendPacket( "src_channel", packet.GetSourceChannel(), "dst_port", packet.GetDestPort(), "dst_channel", packet.GetDestChannel(), - "data", fmt.Sprintf("%X", packet.GetData()), ) return nil }