Skip to content

Commit

Permalink
Update log message usage - stringer vs str
Browse files Browse the repository at this point in the history
  • Loading branch information
Maelkum committed Nov 14, 2024
1 parent 79be8e6 commit 530f4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (n *Node) processMessage(ctx context.Context, from peer.ID, payload []byte,
return fmt.Errorf("could not unpack message: %w", err)
}

log := n.log.With().Str("peer", from.String()).Str("type", msgType).Str("pipeline", pipeline.String()).Logger()
log := n.log.With().Stringer("peer", from).Str("type", msgType).Stringer("pipeline", pipeline).Logger()

if !messageAllowedOnPipeline(msgType, pipeline) {
log.Debug().Msg("message not allowed on pipeline")
Expand Down

0 comments on commit 530f4cc

Please sign in to comment.