Clear all root handlers before starting app

This commit is contained in:
George Tsiamasiotis 2024-09-17 15:53:54 +03:00
parent 3b72375b53
commit fa73c86a85

View File

@ -9,7 +9,13 @@ from frigate.app import FrigateApp
def main() -> None:
faulthandler.enable()
logging.basicConfig(level=logging.INFO, handlers=[])
# Clear all existing handlers.
logging.basicConfig(
level=logging.INFO,
handlers=[],
force=True,
)
threading.current_thread().name = "frigate"
cli.show_server_banner = lambda *x: None