Skip to content

Commit 1daac51

Browse files
committed
Improve Message Output - Starton new line
1 parent f821301 commit 1daac51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ func logJSON(msg string, fields map[string]string) {
106106
}
107107
jsonBytes, err := json.Marshal(entry)
108108
if err != nil {
109-
fmt.Fprintf(os.Stdout, "[nginx-cache-sync] {\"msg\":\"failed to encode log: %s\"}\n", err.Error())
109+
fmt.Fprintf(os.Stdout, "\n[nginx-cache-sync] {\"msg\":\"failed to encode log: %s\"}\n", err.Error())
110110
return
111111
}
112-
fmt.Fprintf(os.Stdout, "[nginx-cache-sync] %s\n", string(jsonBytes))
112+
fmt.Fprintf(os.Stdout, "\n[nginx-cache-sync] %s\n", string(jsonBytes))
113113
}

0 commit comments

Comments
 (0)