Always force reread of the config when we're rotating the log file (closes issue #10598)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81387 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2007-08-30 17:51:46 +00:00
parent ee7a6c0851
commit 43adcde7bf

View File

@@ -574,7 +574,7 @@ int reload_logger(int rotate)
filesize_reload_needed = 0;
init_logger_chain(1, 1);
init_logger_chain(rotate ? 0 : 1 /* reload */, 1 /* locked */);
if (logfiles.event_log) {
snprintf(old, sizeof(old), "%s/%s", ast_config_AST_LOG_DIR, EVENTLOG);
@@ -894,7 +894,7 @@ int init_logger(void)
ast_mkdir(ast_config_AST_LOG_DIR, 0777);
/* create log channels */
init_logger_chain(0, 0);
init_logger_chain(0 /* reload */, 0 /* locked */);
/* create the eventlog */
if (logfiles.event_log) {