mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
handle invalid log level strings. (FSCORE-69)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6604 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
+3
-1
@@ -706,7 +706,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
|
||||
level = switch_log_str2level(val);
|
||||
}
|
||||
|
||||
switch_core_session_ctl(SCSC_LOGLEVEL, &level);
|
||||
if (level != SWITCH_LOG_INVALID) {
|
||||
switch_core_session_ctl(SCSC_LOGLEVEL, &level);
|
||||
}
|
||||
|
||||
} else if (!strcasecmp(var, "mailer-app")) {
|
||||
runtime.mailer_app = switch_core_strdup(runtime.memory_pool, val);
|
||||
|
||||
Reference in New Issue
Block a user