summaryrefslogtreecommitdiff
path: root/main/logger.c
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2009-05-02 18:39:48 +0000
committerKevin P. Fleming <kpfleming@digium.com>2009-05-02 18:39:48 +0000
commitb8b4d01b065df82ca3d6caf374ae6912b6807377 (patch)
treeb99efa78899538971fa9eeceaff087e361ae4bff /main/logger.c
parenta0766f8113a7ddf903a28d7cba199a45199080f4 (diff)
Fix an error in queue_log file rotation optimization code
This code was copy-and-pasted without properly changing references to event_rotate into queue_rotate, so under some conditions the log rotation would rotate queue_log even though it was not necessary. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@191775 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/logger.c')
-rw-r--r--main/logger.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/logger.c b/main/logger.c
index 82a3be04b..24e182a17 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -623,14 +623,13 @@ static int reload_logger(int rotate)
fclose(qlog);
qlog = NULL;
} else
- event_rotate = 0;
+ queue_rotate = 0;
} else {
fclose(qlog);
qlog = NULL;
}
} else
queue_rotate = 0;
- qlog = NULL;
ast_mkdir(ast_config_AST_LOG_DIR, 0777);