mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
loggers: Avoid using Logf for the LevelLoggerToWriter
To prevent issues with percentage chars.
This commit is contained in:
parent
3ca29b1563
commit
f59c3c0214
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue