e86c2301ec
- Stripped _ENV_MAP and _apply_env_overrides from configs/load.py - Cleaned up unused imports in video_receiver.py - Restored MediaPipe env suppressors in app/main.py - Removed .env.example (replaced by config.yaml)
29 lines
587 B
Python
29 lines
587 B
Python
from __future__ import annotations
|
|
|
|
import os
|
|
|
|
os.environ["MEDIAPIPE_DISABLE_LOGGING"] = "1"
|
|
os.environ["GLOG_minloglevel"] = "3"
|
|
|
|
import asyncio
|
|
|
|
from loguru import logger
|
|
|
|
from app.core.lifecycle import startup
|
|
from app.signaling.websocket_server import main as serve
|
|
|
|
|
|
def main():
|
|
startup()
|
|
logger.info("Starting server...")
|
|
try:
|
|
asyncio.run(serve())
|
|
except (KeyboardInterrupt, SystemExit):
|
|
logger.info("Server stopped by user")
|
|
except Exception as e:
|
|
logger.error(f"Server error: {e}")
|
|
raise
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main() |