Removed the logging facility from citserver, use syslog instead
[citadel.git] / webcit / webserver.c
index 858f0b61e0aee2332196023cad3b619174fae366..805451fe5b6804feb90661f29f470ea8fd192bd9 100644 (file)
@@ -216,6 +216,12 @@ int main(int argc, char **argv)
                        return 1;
                }
 
+       /* Start the logger */
+       openlog("webcit",
+               ( running_as_daemon ? (LOG_PID) : (LOG_PID | LOG_PERROR) ),
+               LOG_DAEMON
+       );
+
        if (optind < argc) {
                ctdlhost = argv[optind];
                if (++optind < argc)