mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 10:51:40 +00:00
Fixed code ordering of logger_init and queue_log_init
bug 6263 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@8124 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
8
logger.c
8
logger.c
@@ -461,8 +461,8 @@ int reload_logger(int rotate)
|
||||
|
||||
filesize_reload_needed = 0;
|
||||
|
||||
queue_log_init();
|
||||
init_logger_chain();
|
||||
queue_log_init();
|
||||
|
||||
if (logfiles.event_log) {
|
||||
if (eventlog) {
|
||||
@@ -589,12 +589,12 @@ int init_logger(void)
|
||||
ast_cli_register(&rotate_logger_cli);
|
||||
ast_cli_register(&logger_show_channels_cli);
|
||||
|
||||
/* initialize queue logger */
|
||||
queue_log_init();
|
||||
|
||||
/* create log channels */
|
||||
init_logger_chain();
|
||||
|
||||
/* initialize queue logger */
|
||||
queue_log_init();
|
||||
|
||||
/* create the eventlog */
|
||||
if (logfiles.event_log) {
|
||||
mkdir((char *)ast_config_AST_LOG_DIR, 0755);
|
||||
|
Reference in New Issue
Block a user