mirror of
https://github.com/xcat2/confluent.git
synced 2026-07-29 00:59:41 +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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user