Martin Sivák has uploaded a new change for review.

Change subject: Base the log rotation on time instead of the log file size
......................................................................

Base the log rotation on time instead of the log file size

Change-Id: I22f227fd402071a696fd6dccd688e87d733634eb
Signed-off-by: Martin Sivak <[email protected]>
(cherry picked from commit fbdb4da80a8dc3169fe97fa7e97bdb9d0734bff6)
---
M ovirt_hosted_engine_ha/agent/agent-log.conf.in
M ovirt_hosted_engine_ha/broker/broker-log.conf.in
2 files changed, 4 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha 
refs/changes/39/24839/1

diff --git a/ovirt_hosted_engine_ha/agent/agent-log.conf.in 
b/ovirt_hosted_engine_ha/agent/agent-log.conf.in
index b710d72..58f36da 100644
--- a/ovirt_hosted_engine_ha/agent/agent-log.conf.in
+++ b/ovirt_hosted_engine_ha/agent/agent-log.conf.in
@@ -19,8 +19,8 @@
 args=('/dev/log', handlers.SysLogHandler.LOG_USER)
 
 [handler_logfile]
-class=logging.handlers.RotatingFileHandler
-args=('@ENGINE_HA_LOGDIR@/agent.log', 'a', 4194304, 8)
+class=logging.handlers.TimedRotatingFileHandler
+args=('@ENGINE_HA_LOGDIR@/agent.log', 'd', 1, 7)
 level=DEBUG
 formatter=long
 
diff --git a/ovirt_hosted_engine_ha/broker/broker-log.conf.in 
b/ovirt_hosted_engine_ha/broker/broker-log.conf.in
index 1546140..66420f4 100644
--- a/ovirt_hosted_engine_ha/broker/broker-log.conf.in
+++ b/ovirt_hosted_engine_ha/broker/broker-log.conf.in
@@ -19,8 +19,8 @@
 args=('/dev/log', handlers.SysLogHandler.LOG_USER)
 
 [handler_logfile]
-class=logging.handlers.RotatingFileHandler
-args=('@ENGINE_HA_LOGDIR@/broker.log', 'a', 4194304, 8)
+class=logging.handlers.TimedRotatingFileHandler
+args=('@ENGINE_HA_LOGDIR@/broker.log', 'd', 1, 7)
 level=DEBUG
 formatter=long
 


-- 
To view, visit http://gerrit.ovirt.org/24839
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I22f227fd402071a696fd6dccd688e87d733634eb
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-hosted-engine-ha
Gerrit-Branch: ovirt-hosted-engine-ha-1.1
Gerrit-Owner: Martin Sivák <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to