diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-30 17:51:46 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-08-30 17:51:46 +0000 |
commit | 938d5c5dc68b7cebacc12500eef2140955fb2fb5 (patch) | |
tree | 4054528e65166e3a345df799a63ba828869f415c /main/logger.c | |
parent | 58960ecb700734b6a55d0e7615323c4ec66d0330 (diff) |
Always force reread of the config when we're rotating the log file (closes issue #10598)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@81387 f38db490-d61c-443f-a65b-d21fe96a405b
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) { |