From b5fcb324ff54db70b54bf1e1ed3cea9976c1ebdd Mon Sep 17 00:00:00 2001 From: Cedric Staniewski Date: Fri, 11 Jul 2025 22:53:31 +0200 Subject: [PATCH] Add a space character to separate the timestamp from the log message Signed-off-by: Cedric Staniewski --- cmd/formatter/logs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/formatter/logs.go b/cmd/formatter/logs.go index db8fa885cc3..0c0cb1353d5 100644 --- a/cmd/formatter/logs.go +++ b/cmd/formatter/logs.go @@ -122,7 +122,7 @@ func (l *logConsumer) write(w io.Writer, container, message string) { timestamp := time.Now().Format(jsonmessage.RFC3339NanoFixed) for _, line := range strings.Split(message, "\n") { if l.timestamp { - _, _ = fmt.Fprintf(w, "%s%s%s\n", p.prefix, timestamp, line) + _, _ = fmt.Fprintf(w, "%s%s %s\n", p.prefix, timestamp, line) } else { _, _ = fmt.Fprintf(w, "%s%s\n", p.prefix, line) }