The format string passed to logerr() inconsistently had "\n" at the end.
Since syslog() doesn't want "\n" it is now added only for stderr output.