]> code.citadel.org Git - citadel.git/blobdiff - citadel/modules/checkpoint/serv_checkpoint.c
Removed the logging facility from citserver, use syslog instead
[citadel.git] / citadel / modules / checkpoint / serv_checkpoint.c
index edc26a906a07e552851e104afe8a3e2870823625..061f980a7289c7f8c3b758ae2524d75132a8c4af 100644 (file)
@@ -1,6 +1,4 @@
 /*
- * $Id$
- *
  * checkpointing module for the database
  *
  * Copyright (c) 1987-2009 by the citadel.org team
@@ -68,13 +66,13 @@ void *checkpoint_thread(void *arg) {
        CtdlFillSystemContext(&checkpointCC, "checkpoint");
        citthread_setspecific(MyConKey, (void *)&checkpointCC );
 
-       CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() initializing\n");
+       syslog(LOG_DEBUG, "checkpoint_thread() initializing\n");
        while (!CtdlThreadCheckStop()) {
                cdb_checkpoint();
                CtdlThreadSleep(60);
        }
 
-       CtdlLogPrintf(CTDL_DEBUG, "checkpoint_thread() exiting\n");
+       syslog(LOG_DEBUG, "checkpoint_thread() exiting\n");
        CtdlClearSystemContext();
        return NULL;
 }
@@ -86,5 +84,5 @@ CTDL_MODULE_INIT(checkpoint) {
                CtdlThreadCreate ("checkpoint", CTDLTHREAD_BIGSTACK, checkpoint_thread, NULL);
        }
        /* return our Subversion id for the Log */
-       return "$Id$";
+       return "checkpoint";
 }