set info log rolling backup count to 1 (0 means "keep all backups")

This commit is contained in:
jesopo 2019-11-14 13:35:23 +00:00
parent 301e86190e
commit c9cb8c8805

View file

@ -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)