diff options
Diffstat (limited to 'libxo/xo_syslog.c')
-rw-r--r-- | libxo/xo_syslog.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libxo/xo_syslog.c b/libxo/xo_syslog.c index c1e19e5d77c2..62da1811d0a5 100644 --- a/libxo/xo_syslog.c +++ b/libxo/xo_syslog.c @@ -176,8 +176,8 @@ xo_send_syslog (char *full_msg, char *v0_hdr, int fd; int full_len = strlen(full_msg); - /* Output to stderr if requested. */ - if (xo_logstat & LOG_PERROR) { + /* Output to stderr if requested, then we've been passed a v0 header */ + if (v0_hdr) { struct iovec iov[3]; struct iovec *v = iov; char newline[] = "\n"; |