mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
28 lines
500 B
Python
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()
|