From fa73c86a85576728931d8706b80958995779dd36 Mon Sep 17 00:00:00 2001 From: George Tsiamasiotis Date: Tue, 17 Sep 2024 15:53:54 +0300 Subject: [PATCH] Clear all root handlers before starting app --- frigate/__main__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frigate/__main__.py b/frigate/__main__.py index 9c6607cad..208af9e23 100644 --- a/frigate/__main__.py +++ b/frigate/__main__.py @@ -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