changed LOG_WARNING to LOG_DEBUG for backtrace
authorMatt O'Gorman <mogorman@digium.com>
Wed, 15 Feb 2006 17:37:57 +0000 (17:37 +0000)
committerMatt O'Gorman <mogorman@digium.com>
Wed, 15 Feb 2006 17:37:57 +0000 (17:37 +0000)
messages (issue #6497)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@10195 65c4cc65-6c06-0410-ace0-fbb531ad65f3

logger.c

index 0ad5e3f..d0fe128 100644 (file)
--- a/logger.c
+++ b/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