Browse Source

Add a space character to separate the timestamp from the log message

Signed-off-by: Cedric Staniewski <[email protected]>
Cedric Staniewski 4 months ago
parent
commit
5a704004d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      cmd/formatter/logs.go

+ 1 - 1
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)
 		}