From 6504acecad2836666084c64aa0b62520df006c4f Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 21 Mar 2016 09:57:23 -0400 Subject: [PATCH] Change default log retention to be indefinite Users have noted and complained that log data was lost, and didn't have old data. This changes the default behavior to be indefinite retention. Users noting a lot of logs using space have a nice intuitive indication of old files to delete, and the option remains for those to request a log expiration. --- confluent_server/confluent/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_server/confluent/log.py b/confluent_server/confluent/log.py index 5ba577ee..9ff001c5 100644 --- a/confluent_server/confluent/log.py +++ b/confluent_server/confluent/log.py @@ -197,7 +197,7 @@ class TimedAndSizeRotatingFileHandler(BaseRotatingHandler): self.when = conf.get_option('log', 'when').upper() except (AttributeError): self.when = 'D' - self.backupCount = conf.get_int_option('log', 'backup_count') or 3 + self.backupCount = conf.get_int_option('log', 'backup_count') or 0 self.maxBytes = conf.get_int_option( 'log','max_bytes') or 4 * 1024 * 1024 * 1024 if self.maxBytes < 8192: