diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-08-30 17:51:46 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2007-08-30 17:51:46 +0000 |
commit | 43adcde7bf871e6aff5cc84ad0f245e456095146 (patch) | |
tree | 4054528e65166e3a345df799a63ba828869f415c /main/logger.c | |
parent | ee7a6c08514278df4e83e4047a9f013d3939eb85 (diff) |
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
Diffstat (limited to 'main/logger.c')
-rw-r--r-- | main/logger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/logger.c b/main/logger.c index 5d803377b..b2b94da0b 100644 --- a/main/logger.c +++ b/main/logger.c @@ -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) { |