added "syslog facility" option. It is an integer and defaults to the
[rsync/rsync.git] / log.c
diff --git a/log.c b/log.c
index ebf796b..19339c7 100644 (file)
--- a/log.c
+++ b/log.c
@@ -55,7 +55,7 @@ void rprintf(int fd, const char *format, ...)
                if (!initialised) {
                        initialised = 1;
 #ifdef LOG_DAEMON
-                       openlog("rsyncd", LOG_PID, LOG_DAEMON);
+                       openlog("rsyncd", LOG_PID, lp_syslog_facility());
 #else
                        openlog("rsyncd", LOG_PID);
 #endif