summaryrefslogtreecommitdiffstats
path: root/common/loggers/logger.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-06-19 15:56:44 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-06-19 15:56:44 +0200
commitf59c3c02149edafaf6464c27fd3dd2d8137d5833 (patch)
treefabe5add20795270343886e5e924c3dc698c18ce /common/loggers/logger.go
parent3ca29b15636953bcaa2c391f77f62a53cde7bb67 (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.go2
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
}