Skip to content

Commit 5a70400

Browse files
xduuguglours
authored andcommitted
Add a space character to separate the timestamp from the log message
Signed-off-by: Cedric Staniewski <[email protected]>
1 parent cb95910 commit 5a70400

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/formatter/logs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func (l *logConsumer) write(w io.Writer, container, message string) {
122122
timestamp := time.Now().Format(jsonmessage.RFC3339NanoFixed)
123123
for _, line := range strings.Split(message, "\n") {
124124
if l.timestamp {
125-
_, _ = fmt.Fprintf(w, "%s%s%s\n", p.prefix, timestamp, line)
125+
_, _ = fmt.Fprintf(w, "%s%s %s\n", p.prefix, timestamp, line)
126126
} else {
127127
_, _ = fmt.Fprintf(w, "%s%s\n", p.prefix, line)
128128
}

0 commit comments

Comments
 (0)