]> code.citadel.org Git - citadel.git/blobdiff - citadel/ecrash.c
Removed the logging facility from citserver, use syslog instead
[citadel.git] / citadel / ecrash.c
index f93742a71fd137006f6b76aa99bca0ea50b2e5a5..2ac94574d6383c8cbf4144cea24929baad9ca370 100644 (file)
@@ -191,7 +191,7 @@ static void outputPrintf(char *format, ...)
                syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf);
        }
        else
-               CtdlLogPrintf(CTDL_EMERG, format, ap);
+               syslog(LOG_EMERG, format, ap);
 
 } // outputPrintf
 
@@ -216,7 +216,7 @@ static void createGlobalBacktrace( void )
                }
        else 
                for (NThread = 0; NThread < size; NThread++) 
-                       CtdlLogPrintf(1, "RAW: %p\n", stack_frames[NThread]);
+                       syslog(LOG_ALERT, "RAW: %p\n", stack_frames[NThread]);
        strings = backtrace_symbols(stack_frames, size);
        for (NThread = 0; NThread < size; NThread++) {
                if (strings != NULL) {
@@ -226,7 +226,7 @@ static void createGlobalBacktrace( void )
                                syslog( LOG_CRIT|LOG_NDELAY|LOG_MAIL, StaticBuf);
                        }
                        else
-                               CtdlLogPrintf(1, "%s\n", strings[NThread]);
+                               syslog(LOG_ALERT, "%s\n", strings[NThread]);
                }
        }
 } /* createGlobalBacktrace */
@@ -242,7 +242,7 @@ static void outputRawtrace( void )
                }
        else 
                for (NThread = 0; NThread < size; NThread++) 
-                       CtdlLogPrintf(1, "RAW: %p\n", stack_frames[NThread]);
+                       syslog(LOG_ALERT, "RAW: %p\n", stack_frames[NThread]);
 } /* createGlobalBacktrace */
 
 /*!