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:
Roland Bracewell Shoemaker 2017-07-29 10:27:45 -07:00 committed by Jacob Hoffman-Andrews
parent 5f6d87a3a9
commit 04394d1b76
1 changed files with 1 additions and 1 deletions

View File

@ -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