Skip to content

Commit

Permalink
loggers: Avoid using Logf for the LevelLoggerToWriter
Browse files Browse the repository at this point in the history
To prevent issues with percentage chars.
  • Loading branch information
bep committed Jun 19, 2023
1 parent 3ca29b1 commit f59c3c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/loggers/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,6 @@ type logWriter struct {
}

func (w logWriter) Write(p []byte) (n int, err error) {
w.l.Logf("%s", p)
w.l.Log(logg.String(string(p)))
return len(p), nil
}

0 comments on commit f59c3c0

Please sign in to comment.