logger updated

This commit is contained in:
Lorenzo Volpi 2023-11-06 21:27:02 +01:00
parent 20a28470bd
commit ba09d7efbf
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,6 @@ class Logger:
rh = logging.FileHandler(cls.__logger_file, mode="a")
rh.setLevel(logging.DEBUG)
root.addHandler(rh)
root.info("-" * 100)
# setup logger
if cls.__manager is None:
@ -96,6 +95,8 @@ class Logger:
@classmethod
def close(cls):
if cls.__setup and cls.__thread is not None:
root = logging.getLogger("listener")
root.info("-" * 100)
cls.__queue.put(None)
cls.__thread.join()
# cls.__manager.close()