Skip to content

Commit bcf7e11

Browse files
module: improve 04-channel logging (#323)
* module: improve 04-channel logging * update log Co-authored-by: colin axnér <25233464+colin-axner@users.noreply.github.com>
1 parent bce19c9 commit bcf7e11

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

modules/core/04-channel/keeper/packet.go

+8-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,14 @@ func (k Keeper) SendPacket(
151151
),
152152
})
153153

154-
k.Logger(ctx).Info("packet sent", "packet", fmt.Sprintf("%v", packet))
154+
k.Logger(ctx).Info(
155+
"packet sent",
156+
"sequence", packet.GetSequence(),
157+
"src_port", packet.GetSourcePort(),
158+
"src_channel", packet.GetSourceChannel(),
159+
"dst_port", packet.GetDestPort(),
160+
"dst_channel", packet.GetDestChannel(),
161+
)
155162
return nil
156163
}
157164

0 commit comments

Comments
 (0)