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)
22 lines
458 B
Python
22 lines
458 B
Python
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
from loguru import logger
|
|
|
|
from configs.load import config
|
|
|
|
|
|
def setup_logging() -> None:
|
|
log_dir = config.logging.dir_path
|
|
log_dir.mkdir(parents=True, exist_ok=True)
|
|
|
|
logger.add(
|
|
log_dir / "{time:YYYY-MM-DD}.log",
|
|
rotation=config.logging.rotation,
|
|
retention=config.logging.retention,
|
|
enqueue=True,
|
|
backtrace=True,
|
|
diagnose=True,
|
|
)
|