mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
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:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user