Use global log queue

This commit is contained in:
Nicolas Mowen 2025-06-12 09:55:53 -06:00
parent 270d8f14c7
commit 9414a11df4

View File

@ -45,7 +45,7 @@ class Process(BaseProcess):
return self.__dict__["stop_event"]
def before_start(self) -> None:
self.__log_queue = frigate.log.log_listener.queue
self.__log_queue = frigate.log.log_queue
self.logger = logging.getLogger(self.name)
logging.basicConfig(handlers=[], force=True)
logging.getLogger().addHandler(QueueHandler(self.__log_queue))