set info log rolling backup count to 1 (0 means "keep all backups")
This commit is contained in:
parent
301e86190e
commit
c9cb8c8805
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue