add debug-level to switch.conf.xml and tweak a few debugs

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15595 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West
2009-11-21 06:18:56 +00:00
parent 3303abca65
commit 16ffcd7e26
2 changed files with 11 additions and 6 deletions

View File

@@ -1392,6 +1392,11 @@ static void switch_load_core_config(const char *file)
rlp.rlim_max = RLIM_INFINITY;
setrlimit(RLIMIT_CORE, &rlp);
#endif
} else if (!strcasecmp(var, "debug-level")) {
int tmp = atoi(val);
if (tmp > -1 && tmp < 11) {
switch_core_session_ctl(SCSC_DEBUG_LEVEL, &tmp);
}
} else if (!strcasecmp(var, "colorize-console") && switch_true(val)) {
runtime.colorize_console = SWITCH_TRUE;
} else if (!strcasecmp(var, "mailer-app") && !zstr(val)) {