Add newline when printing to STDERR (#2919)
In `log/log.go` when we fail to write to syslog we log the message to STDERR but without a newline. This causes all of the STDERR logs (when we reconnect to syslog) to be delivered where they go to be on a single line which causes some debugging pain.
This commit is contained in:
parent
5f6d87a3a9
commit
04394d1b76
|
|
@ -146,7 +146,7 @@ func (w *bothWriter) logAtLevel(level syslog.Priority, msg string) {
|
|||
}
|
||||
|
||||
if err != nil {
|
||||
fmt.Fprintf(os.Stderr, "Failed to write to syslog: %s (%s)", msg, err)
|
||||
fmt.Fprintf(os.Stderr, "Failed to write to syslog: %s (%s)\n", msg, err)
|
||||
}
|
||||
|
||||
var reset string
|
||||
|
|
|
|||
Loading…
Reference in New Issue