From 50c2d0a0bb5d464d03827a6bdfc39d6c611d4219 Mon Sep 17 00:00:00 2001 From: Brian West Date: Mon, 4 Feb 2008 18:22:29 +0000 Subject: [PATCH] add default loglevel for mod_console git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7516 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- conf/autoload_configs/console.conf.xml | 1 + src/mod/loggers/mod_console/mod_console.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/conf/autoload_configs/console.conf.xml b/conf/autoload_configs/console.conf.xml index 76508cb17e..98a99a0d00 100644 --- a/conf/autoload_configs/console.conf.xml +++ b/conf/autoload_configs/console.conf.xml @@ -11,5 +11,6 @@ + diff --git a/src/mod/loggers/mod_console/mod_console.c b/src/mod/loggers/mod_console/mod_console.c index d2e11477ee..d42ed63399 100644 --- a/src/mod/loggers/mod_console/mod_console.c +++ b/src/mod/loggers/mod_console/mod_console.c @@ -139,6 +139,9 @@ static switch_status_t config_logger(void) COLORIZE = 1; #endif } + if (!strcasecmp(var, "loglevel")) { + hard_log_level = switch_log_str2level(val); + } } }