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 <25233464+colin-axner@users.noreply.github.com>
  • Loading branch information
alexanderbez and colin-axner committed Aug 10, 2021
1 parent bce19c9 commit bcf7e11
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 bcf7e11

Please sign in to comment.