X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fstatd%2Fsm-notify.c;fp=utils%2Fstatd%2Fsm-notify.c;h=f05eadf5d5b43e2be52525ac5c515a4253c80fcd;hp=1f490b0e6b7832baadf963f10c5839c846f4e1e9;hb=8c2ab7116ee81619d4c24d5b97a36635a046b650;hpb=00184fc2d0297790359e94ea9bd266bfdc0a7954 diff --git a/utils/statd/sm-notify.c b/utils/statd/sm-notify.c index 1f490b0..f05eadf 100644 --- a/utils/statd/sm-notify.c +++ b/utils/statd/sm-notify.c @@ -395,12 +395,14 @@ usage: fprintf(stderr, exit(1); } - xlog_syslog(1); if (opt_debug) { + xlog_syslog(0); xlog_stderr(1); xlog_config(D_ALL, 1); - } else + } else { + xlog_syslog(1); xlog_stderr(0); + } xlog_open(progname); xlog(L_NOTICE, "Version " VERSION " starting");