mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-20 21:31:32 +02:00
loggers: Avoid using Logf for the LevelLoggerToWriter
To prevent issues with percentage chars.
This commit is contained in:
@@ -302,6 +302,6 @@ type logWriter struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w logWriter) Write(p []byte) (n int, err error) {
|
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
|
return len(p), nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user