2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-17 13:13:18 +00:00

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.
This commit is contained in:
Jarrod Johnson 2016-03-21 09:57:23 -04:00
parent d1247cfb37
commit 6504acecad

View File

@ -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: