Bug fix for logging queue listener and ignoring of per handler set levels

in the QueueLister launcher add "respect_handler_level=True" so it respects the previous set log levels per handler

Also split all logging tests into their own file
This commit is contained in:
Clemens Schwaighofer
2025-07-09 17:14:48 +09:00
parent 08cb994d8d
commit 084ecc01e0
5 changed files with 138 additions and 72 deletions

View File

@@ -254,7 +254,11 @@ class Log:
if log_queue is None:
return
self.log_queue = log_queue
self.listener = logging.handlers.QueueListener(self.log_queue, *self.handlers)
self.listener = logging.handlers.QueueListener(
self.log_queue,
*self.handlers,
respect_handler_level=True
)
self.listener.start()
def __init_log(self, log_name: str) -> None: