mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-13 20:24:00 +02:00
@@ -242,6 +242,10 @@ func (l *logAdapter) PrintTimerIfDelayed(start time.Time, name string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (l *logAdapter) Printf(format string, v ...any) {
|
func (l *logAdapter) Printf(format string, v ...any) {
|
||||||
|
// Add trailing newline if not present.
|
||||||
|
if !strings.HasSuffix(format, "\n") {
|
||||||
|
format += "\n"
|
||||||
|
}
|
||||||
fmt.Fprintf(l.out, format, v...)
|
fmt.Fprintf(l.out, format, v...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user