From 73524d70dcfb09d48968446ac6dc2eb667726ec9 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Fri, 29 Mar 2019 02:28:03 +0100 Subject: [PATCH] Switch back to default log file naming because of broken rotate file deleting --- src/Config.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Config.py b/src/Config.py index 3077c660..29976c4e 100644 --- a/src/Config.py +++ b/src/Config.py @@ -544,9 +544,6 @@ class Config(object): console_logger.setLevel(level) logging.getLogger('').addHandler(console_logger) - def fileLogNamer(self, filename): - return re.sub(r"\.log\.(.*?)$", ".\\1.log", filename) - def initFileLogger(self): if self.action == "main": log_file_path = "%s/debug.log" % self.log_dir @@ -561,7 +558,6 @@ class Config(object): log_file_path, when=when_names[self.log_rotate], interval=1, backupCount=self.log_rotate_backup_count, encoding="utf8" ) - file_logger.namer = self.fileLogNamer if os.path.isfile(log_file_path): file_logger.doRollover() # Always start with empty log file