From c9cb8c8805b4992e18c55c0050e7af394c0bfbfc Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 14 Nov 2019 13:35:23 +0000 Subject: [PATCH] set info log rolling backup count to 1 (0 means "keep all backups") --- src/Logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Logging.py b/src/Logging.py index e883540a..edb1687d 100644 --- a/src/Logging.py +++ b/src/Logging.py @@ -60,7 +60,7 @@ class Log(object): info_path = os.path.join(location, "info.log") info_handler = logging.handlers.TimedRotatingFileHandler( - info_path, when="midnight", backupCount=0) + info_path, when="midnight", backupCount=1) info_handler.setLevel(LEVELS["info"]) info_handler.setFormatter(formatter) self.logger.addHandler(info_handler)