mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-01 19:17:41 +03:00
Set process names
This commit is contained in:
parent
5c144de8a1
commit
56fcd9f663
@ -7,6 +7,8 @@ import threading
|
||||
from logging.handlers import QueueHandler
|
||||
from typing import Callable, Optional
|
||||
|
||||
from setproctitle import setproctitle
|
||||
|
||||
import frigate.log
|
||||
from frigate.config.logger import LoggerConfig
|
||||
|
||||
@ -52,6 +54,8 @@ class Process(BaseProcess):
|
||||
self.__log_queue = frigate.log.log_listener.queue
|
||||
|
||||
def pre_run_setup(self, logConfig: LoggerConfig | None = None) -> None:
|
||||
setproctitle(self.name)
|
||||
threading.current_thread().name = f"process:{self.name}"
|
||||
faulthandler.enable()
|
||||
|
||||
def receiveSignal(signalNumber, frame):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user