mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-31 18:55:49 +00:00
initialize event engine and logs earlier
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7776 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a3be4e8e72
commit
3fe5dc7826
@ -726,6 +726,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
|
|||||||
switch_core_set_variable("local_ip_v6", guess_ip);
|
switch_core_set_variable("local_ip_v6", guess_ip);
|
||||||
switch_core_set_variable("base_dir", SWITCH_GLOBAL_dirs.base_dir);
|
switch_core_set_variable("base_dir", SWITCH_GLOBAL_dirs.base_dir);
|
||||||
|
|
||||||
|
switch_log_init(runtime.memory_pool);
|
||||||
|
switch_event_init(runtime.memory_pool);
|
||||||
|
|
||||||
if (switch_xml_init(runtime.memory_pool, err) != SWITCH_STATUS_SUCCESS) {
|
if (switch_xml_init(runtime.memory_pool, err) != SWITCH_STATUS_SUCCESS) {
|
||||||
apr_terminate();
|
apr_terminate();
|
||||||
return SWITCH_STATUS_MEMERR;
|
return SWITCH_STATUS_MEMERR;
|
||||||
@ -803,10 +806,6 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
|
|||||||
runtime.console = stdout;
|
runtime.console = stdout;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_assert(runtime.memory_pool != NULL);
|
|
||||||
switch_log_init(runtime.memory_pool);
|
|
||||||
switch_event_init(runtime.memory_pool);
|
|
||||||
|
|
||||||
if (switch_test_flag((&runtime), SCF_USE_SQL)) {
|
if (switch_test_flag((&runtime), SCF_USE_SQL)) {
|
||||||
switch_core_sqldb_start(runtime.memory_pool);
|
switch_core_sqldb_start(runtime.memory_pool);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user