[test] Disable logs when loading and shutting down FS core

This commit is contained in:
Chris Rienzo authored and Andrey Volk committed 2020-05-18 21:20:06 +04:00
1 parent e1f63ce5b1
commit bd46061a10
4 files changed
+34 -9

No files matched your search

+7 -2
View File
@@ -1859,7 +1859,12 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
switch_set_flag((&runtime), SCF_THREADED_SYSTEM_EXEC);
#endif
switch_set_flag((&runtime), SCF_NO_NEW_SESSIONS);
runtime.hard_log_level = SWITCH_LOG_DEBUG;
if (flags & SCF_LOG_DISABLE) {
runtime.hard_log_level = SWITCH_LOG_DISABLE;
flags &= ~SCF_LOG_DISABLE;
} else {
runtime.hard_log_level = SWITCH_LOG_DEBUG;
}
runtime.mailer_app = "sendmail";
runtime.mailer_app_args = "-t";
runtime.max_dtmf_duration = SWITCH_MAX_DTMF_DURATION;
@@ -2898,7 +2903,7 @@ SWITCH_DECLARE(int32_t) switch_core_session_ctl(switch_session_ctl_t cmd, void *
newintval = runtime.running;
break;
case SCSC_LOGLEVEL:
if (oldintval > -1) {
if (oldintval >= SWITCH_LOG_DISABLE) {
runtime.hard_log_level = oldintval;
}