mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 21:22:09 +00:00
add loglevel param to switch.conf
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5822 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -443,6 +443,16 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(const char *console, switch_cor
|
||||
if (switch_true(val)) {
|
||||
switch_set_flag((&runtime), SCF_CRASH_PROT);
|
||||
}
|
||||
} else if (!strcasecmp(var, "loglevel")) {
|
||||
int level;
|
||||
if (*val > 47 && *val < 58) {
|
||||
level = atoi(val);
|
||||
} else {
|
||||
level = switch_log_str2level(val);
|
||||
}
|
||||
|
||||
switch_core_session_ctl(SCSC_LOGLEVEL, &level);
|
||||
|
||||
} else if (!strcasecmp(var, "sessions-per-second")) {
|
||||
switch_core_sessions_per_second(atoi(val));
|
||||
} else if (!strcasecmp(var, "max-sessions")) {
|
||||
|
||||
Reference in New Issue
Block a user