diff --git a/ennstatus/log.py b/ennstatus/log.py --- a/ennstatus/log.py +++ b/ennstatus/log.py @@ -17,7 +17,7 @@ def init_logging(app): rotating_file_handler = logging.handlers.RotatingFileHandler( 'log/ennstatus.log', - maxBytes=130000, + maxBytes=1300000, backupCount=10, encoding='utf-8') rotating_file_handler.setLevel(logging.INFO) @@ -26,7 +26,7 @@ def init_logging(app): if app.debug: second_rotating_file_handler = logging.handlers.RotatingFileHandler( 'log/ennstatus_debug.log', - maxBytes=130000, + maxBytes=1300000, backupCount=20, encoding='utf-8') second_rotating_file_handler.setLevel(logging.DEBUG)