X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fcitserver.c;h=59dc31443f72ec494c2be44c38c4b51a21264402;hp=447d68f066850b15e15e895795b36c2f289e3c94;hb=83f6f54ff172d43c9ab0fab87b10280d0c99ccec;hpb=45dec175706ba376d19f66d7eeac6f71b87ef810 diff --git a/citadel/citserver.c b/citadel/citserver.c index 447d68f06..59dc31443 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -52,10 +52,12 @@ void cit_backtrace(void) size = backtrace(stack_frames, sizeof(stack_frames) / sizeof(void*)); strings = backtrace_symbols(stack_frames, size); for (i = 0; i < size; i++) { - if (strings != NULL) - syslog(LOG_ALERT, "%s %s\n", p, strings[i]); - else - syslog(LOG_ALERT, "%s %p\n", p, stack_frames[i]); + if (strings != NULL) { + syslog(LOG_DEBUG, "citserver: %s %s", p, strings[i]); + } + else { + syslog(LOG_DEBUG, "citserver: %s %p", p, stack_frames[i]); + } } free(strings); #endif @@ -81,12 +83,13 @@ void cit_oneline_backtrace(void) StrBufAppendPrintf(Buf, "%p : ", stack_frames[i]); } free(strings); - syslog(LOG_ALERT, "%s %s\n", IOSTR, ChrPtr(Buf)); + syslog(LOG_DEBUG, "citserver: %s %s", IOSTR, ChrPtr(Buf)); FreeStrBuf(&Buf); } #endif } + /* * print the actual stack frame. */ @@ -101,10 +104,12 @@ void cit_panic_backtrace(int SigNum) size = backtrace(stack_frames, sizeof(stack_frames) / sizeof(void*)); strings = backtrace_symbols(stack_frames, size); for (i = 0; i < size; i++) { - if (strings != NULL) - syslog(LOG_ALERT, "%s\n", strings[i]); - else - syslog(LOG_ALERT, "%p\n", stack_frames[i]); + if (strings != NULL) { + syslog(LOG_DEBUG, "%s", strings[i]); + } + else { + syslog(LOG_DEBUG, "%p", stack_frames[i]); + } } free(strings); #endif