Skip to content

Commit

Permalink
module: improve 04-channel logging (#323)
Browse files Browse the repository at this point in the history
* module: improve 04-channel logging

* update log

Co-authored-by: colin axnér <[email protected]>
  • Loading branch information
alexanderbez and colin-axner authored Aug 10, 2021
1 parent 1160f56 commit 3dade92
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/core/04-channel/keeper/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 3dade92

Please sign in to comment.