Always force reread of the config when we're rotating the log file (closes issue...
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 30 Aug 2007 17:51:46 +0000 (17:51 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 30 Aug 2007 17:51:46 +0000 (17:51 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81387 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/logger.c

index 5d80337..b2b94da 100644 (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) {