Fix minor bugs with log rotation support. Ref #1586

This commit is contained in:
grossmj committed 2019-05-28 10:34:27 +07:00
1 parent 5cbfafbeb2
commit 591d4f29ff
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ class CompressedRotatingFileHandler(RotatingFileHandler):
self.stream = self._open()
def init_logger(level, logfile=None, max_bytes=1000000000, backup_count=10, compression=True, quiet=False):
def init_logger(level, logfile=None, max_bytes=10000000, backup_count=10, compression=True, quiet=False):
if logfile and len(logfile) > 0:
if compression:
stream_handler = CompressedRotatingFileHandler(logfile, maxBytes=max_bytes, backupCount=backup_count)