Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
ainghazal committed Jan 29, 2024
1 parent 675fd8f commit 5b4d2eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/model/packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ const (
DirectionOutgoing
)

// Log writes an entry in the passed logger with a representation of this packet.
func (p *Packet) Log(logger Logger, direction int) {
var dir string
switch direction {
Expand All @@ -324,7 +325,7 @@ func (p *Packet) Log(logger Logger, direction int) {
return
}

logger.Infof(
logger.Debugf(
"%s %s {id=%d, acks=%v} localID=%x remoteID=%x [%d bytes]",
dir,
p.Opcode,
Expand Down

0 comments on commit 5b4d2eb

Please sign in to comment.