Fix log rotation (#36)
This commit is contained in:
1 parent
76af6f739d
commit
68a03ced91
1 file changed
+1
-1
+1
-1
@@ -180,7 +180,7 @@ def setup_logger():
|
||||
root_logger.addHandler(console_logger)
|
||||
|
||||
if config["logging"]["file"]:
|
||||
max_log_size = min(config["logging"]["maxsize"], 0) * 1024
|
||||
max_log_size = max(config["logging"]["maxsize"], 0) * 1024
|
||||
file_logger = logging.handlers.RotatingFileHandler(
|
||||
config["logging"]["file"],
|
||||
maxBytes=max_log_size,
|
||||
|
||||
Reference in new issue
Block a user