going to LOG_DAEMON. There was a command line parsing bug.
$Id$
+Sun Oct 30 22:22:00 EST 2005 ajc
+* syslog messages are now sent to the desired facility rather than always
+ going to LOG_DAEMON. There was a command line parsing bug.
+
Sun Oct 30 21:17:57 EST 2005 ajc
* Log messages posted to the Aide> room indicating activity such as room
create/delete/edit operations now use "Room Name" rather than Room Name>
/* initialize the master context */
InitializeMasterCC();
- /* set default syslog facility */
- syslog_facility = LOG_DAEMON;
-
/* parse command-line arguments */
for (a=1; a<argc; ++a) {
if (!strncmp(argv[a], "-l", 2)) {
- safestrncpy(facility, argv[a], sizeof(facility));
+ safestrncpy(facility, &argv[a][2], sizeof(facility));
syslog_facility = SyslogFacility(facility);
enable_syslog = 1;
}
pthread_t indexer_thread_tid;
pthread_t checkpoint_thread_tid;
-int syslog_facility = (-1);
+int syslog_facility = LOG_DAEMON;
int enable_syslog = 0;
extern int running_as_daemon;