News
This commit is contained in:
@@ -95,7 +95,7 @@ def app_factory() -> FastAPI:
|
||||
cfg = load_config_from_env()
|
||||
# Laufzeit-Settings laden und Logging initialisieren (überschreibt ggf. YAML-Logging)
|
||||
settings = load_runtime_config(base_dir=BASE_DIR)
|
||||
init_logging(settings)
|
||||
init_logging(settings, cfg)
|
||||
app = create_app(cfg)
|
||||
return app
|
||||
|
||||
@@ -135,8 +135,8 @@ def main(argv: Optional[List[str]] = None) -> None:
|
||||
cfg = load_yaml(config_path)
|
||||
# Laufzeit-Settings laden und Logging initialisieren (überschreibt ggf. YAML-Logging)
|
||||
settings = load_runtime_config(base_dir=BASE_DIR)
|
||||
init_logging(settings)
|
||||
|
||||
init_logging(settings, cfg)
|
||||
|
||||
app_cfg = cfg.get("app", {}) or {}
|
||||
host = str(app_cfg.get("host", "0.0.0.0"))
|
||||
port = int(app_cfg.get("port", 8000))
|
||||
|
||||
Reference in New Issue
Block a user