mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 14:31:13 +02:00
Fix minor bugs with log rotation support. Ref #1586
This commit is contained in:
1 parent
5cbfafbeb2
commit
591d4f29ff
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user