diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-19 15:56:44 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2023-06-19 15:56:44 +0200 |
commit | f59c3c02149edafaf6464c27fd3dd2d8137d5833 (patch) | |
tree | fabe5add20795270343886e5e924c3dc698c18ce /common/loggers/logger.go | |
parent | 3ca29b15636953bcaa2c391f77f62a53cde7bb67 (diff) |
loggers: Avoid using Logf for the LevelLoggerToWriter
To prevent issues with percentage chars.
Diffstat (limited to 'common/loggers/logger.go')
-rw-r--r-- | common/loggers/logger.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/loggers/logger.go b/common/loggers/logger.go index b94e9e935..640611939 100644 --- a/common/loggers/logger.go +++ b/common/loggers/logger.go @@ -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 } |