diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/loggers/logger.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/common/loggers/logger.go b/common/loggers/logger.go index 85c75ef98..b94e9e935 100644 --- a/common/loggers/logger.go +++ b/common/loggers/logger.go @@ -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...) } |