Skip to content

Commit

Permalink
Ensure at least one root handler is configured before starting app
Browse files Browse the repository at this point in the history
  • Loading branch information
gtsiam committed Sep 17, 2024
1 parent 3b72375 commit 2d5f998
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frigate/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@

def main() -> None:
faulthandler.enable()
logging.basicConfig(level=logging.INFO, handlers=[])
logging.basicConfig(
level=logging.INFO,
handlers=[
# Prevent other code from registering root handlers accidentally
logging.NullHandler()
],
)

threading.current_thread().name = "frigate"
cli.show_server_banner = lambda *x: None
Expand Down

0 comments on commit 2d5f998

Please sign in to comment.