Fix logs path

This commit is contained in:
Bjoern Kerler 2024-06-14 08:07:51 +02:00
parent d98f79629b
commit e64c544d38
No known key found for this signature in database
GPG key ID: A3E0FAF79F2F4578

View file

@ -72,7 +72,7 @@ class Mtk_Config(metaclass=LogBase):
self.dram = None
self.otp = None
if loglevel == logging.DEBUG:
logfilename = os.path.join(self.hwparam_path, "log.txt")
logfilename = os.path.join("logs", "log.txt")
fh = logging.FileHandler(logfilename)
self.__logger.addHandler(fh)
self.__logger.setLevel(logging.DEBUG)