common/loggers: Re-add trailing newline in logger.Printf

Fixes #11130
This commit is contained in:
Bjørn Erik Pedersen 2023-06-18 18:56:45 +02:00
parent 8a04d47ab7
commit 1b85303ac2
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -242,6 +242,10 @@ func (l *logAdapter) PrintTimerIfDelayed(start time.Time, name string) {
}
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...)
}