This commit is contained in:
Bjoern Kerler 2021-08-05 12:40:18 +02:00
commit 3ee080f8bf

View file

@ -1305,8 +1305,6 @@ class Mtk_Config(metaclass=LogBase):
self.chipconfig = chipconfig()
if loglevel == logging.DEBUG:
logfilename = os.path.join("logs", "log.txt")
if os.path.exists(logfilename):
os.remove(logfilename)
fh = logging.FileHandler(logfilename)
self.__logger.addHandler(fh)
self.__logger.setLevel(logging.DEBUG)