ctdbd: use ctdb_syslog_log() as debug_add function for syslog
authorMichael Adam <obnox@samba.org>
Tue, 21 Jul 2009 07:50:56 +0000 (09:50 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 4 Aug 2009 07:46:39 +0000 (09:46 +0200)
Michael

server/ctdb_logging.c

index c993cf09ef8a1c74d3db4c521dc1714b25dc5db8..930fa7bca06d1b7f78d9e95b04d11cf5f16a3c35 100644 (file)
@@ -144,6 +144,7 @@ int ctdb_set_logfile(struct ctdb_context *ctdb, const char *logfile, bool use_sy
 
        if (use_syslog) {
                do_debug_v = ctdb_syslog_log;
+               do_debug_add_v = ctdb_syslog_log;
                ctdb->log->use_syslog = true;
        } else if (logfile == NULL || strcmp(logfile, "-") == 0) {
                do_debug_v = ctdb_logfile_log;