frigate/frigate/__main__.py
Rui Alves 8a3f512d5a Merge branch 'fastapi-poc-media-endpoints' into fastapi-poc-notification-preview
# Conflicts:
#	frigate/__main__.py
#	frigate/api/event.py
2024-09-21 14:15:21 +01:00

28 lines
500 B
Python

import faulthandler
import logging
import threading
from frigate.app import FrigateApp
def main() -> None:
faulthandler.enable()
# Clear all existing handlers.
logging.basicConfig(
level=logging.INFO,
handlers=[],
force=True,
)
threading.current_thread().name = "frigate"
# TODO: Rui. Do we need this?
# cli.show_server_banner = lambda *x: None
# Run the main application.
FrigateApp().start()
if __name__ == "__main__":
main()