Append, don't write

This commit is contained in:
Watchful1
2020-12-16 18:53:59 -08:00
parent f3c527bb06
commit 56550b82bd

View File

@@ -29,7 +29,7 @@ def run():
cfg = config.load()
file_handler = RotatingFileHandler(cfg.log_path, mode='w', maxBytes=1024*1024, backupCount=3, encoding='utf-8')
file_handler = RotatingFileHandler(cfg.log_path, maxBytes=1024*1024, backupCount=3, encoding='utf-8')
console_handler = logging.StreamHandler(sys.stderr)
console_handler.setLevel(logging.INFO)