mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user