mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
changed LOG_WARNING to LOG_DEBUG for backtrace
messages (issue #6497) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10195 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
8
logger.c
8
logger.c
@@ -841,17 +841,17 @@ void ast_backtrace(void)
|
||||
count = backtrace(addresses, 20);
|
||||
strings = backtrace_symbols(addresses, count);
|
||||
if (strings) {
|
||||
ast_log(LOG_WARNING, "Got %d backtrace record%c\n", count, count != 1 ? 's' : ' ');
|
||||
ast_log(LOG_DEBUG, "Got %d backtrace record%c\n", count, count != 1 ? 's' : ' ');
|
||||
for (i=0; i < count ; i++) {
|
||||
ast_log(LOG_WARNING, "#%d: [%08X] %s\n", i, (unsigned int)addresses[i], strings[i]);
|
||||
ast_log(LOG_DEBUG, "#%d: [%08X] %s\n", i, (unsigned int)addresses[i], strings[i]);
|
||||
}
|
||||
free(strings);
|
||||
} else {
|
||||
ast_log(LOG_WARNING, "Could not allocate memory for backtrace\n");
|
||||
ast_log(LOG_DEBUG, "Could not allocate memory for backtrace\n");
|
||||
}
|
||||
free(addresses);
|
||||
} else {
|
||||
ast_log(LOG_WARNING, "Could not allocate memory for backtrace\n");
|
||||
ast_log(LOG_DEBUG, "Could not allocate memory for backtrace\n");
|
||||
}
|
||||
#else
|
||||
#ifdef Linux
|
||||
|
Reference in New Issue
Block a user