]> git.sur5r.net Git - bacula/bacula/commitdiff
Make all ABORT and ERROR_EXIT msgs go to syslog
authorKern Sibbald <kern@sibbald.com>
Sat, 24 Oct 2009 09:26:01 +0000 (11:26 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 24 Oct 2009 09:26:01 +0000 (11:26 +0200)
bacula/src/lib/message.c

index 6cb762d8747e203aa2a2744136c0b18c364480f7..e96078bd3b3f3aa10989410b2823b891b1830720 100644 (file)
@@ -638,6 +638,7 @@ void dispatch_message(JCR *jcr, int type, utime_t mtime, char *msg)
        fputs(dt, stdout);
        fputs(msg, stdout);         /* print this here to INSURE that it is printed */
        fflush(stdout);
+       syslog(LOG_DAEMON|LOG_ERR, "%s", msg);
     }