Skip to content

Commit

Permalink
lxc/monitor: replace fmt.Sprintf(%v, var) by fmt.Sprint(var)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <[email protected]>
  • Loading branch information
simondeziel committed Jan 21, 2025
1 parent eba9ab3 commit 89794e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxc/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ func (c *cmdMonitor) unpackCtx(ctx []any) logrus.Fields {
var key string
for _, entry := range ctx {
if key == "" {
key = fmt.Sprintf("%v", entry)
key = fmt.Sprint(entry)
} else {
out[key] = fmt.Sprintf("%v", entry)
out[key] = fmt.Sprint(entry)
key = ""
}
}
Expand Down

0 comments on commit 89794e4

Please sign in to comment.