diff --git a/src/log/syslog/syslog.go b/src/log/syslog/syslog.go index 8c6ba721352..03e5263d3ed 100644 --- a/src/log/syslog/syslog.go +++ b/src/log/syslog/syslog.go @@ -255,7 +255,7 @@ func (w *Writer) writeAndRetry(p Priority, s string) (int, error) { if w.conn != nil { if n, err := w.write(pr, s); err == nil { - return n, err + return n, nil } } if err := w.connect(); err != nil {