Files
posefit-server/app/core/lifecycle.py
T
wsy182 f9384f7bc1 Parse config.yaml into typed AppConfig dataclass
- ServerConfig, VideoConfig, ModelConfig, DeadBugConfig,
  AudioConfig, LoggingConfig as nested dataclasses
- Consumers use config.server.host, config.model.resolved_path etc.
- env var overrides preserved via _apply_env_overrides()
2026-06-10 10:23:51 +08:00

11 lines
273 B
Python

from __future__ import annotations
from app.diagnostics.crash_handler import enable_crash_handler
from configs.load import config
def startup() -> None:
enable_crash_handler(config.logging.dir_path)
from app.core.logging import setup_logging
setup_logging()