loggers: Avoid using Logf for the LevelLoggerToWriter

To prevent issues with percentage chars.
This commit is contained in:
Bjørn Erik Pedersen 2023-06-19 15:56:44 +02:00
parent 3ca29b1563
commit f59c3c0214
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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
}