From 8e3b9b7447ff541bd9b32c5ad9e67a99c482a166 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Thu, 21 Dec 2023 07:55:55 -0500 Subject: [PATCH] print config on startup --- src/dlhdhr/__main__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/dlhdhr/__main__.py b/src/dlhdhr/__main__.py index db947f0..e042105 100644 --- a/src/dlhdhr/__main__.py +++ b/src/dlhdhr/__main__.py @@ -5,6 +5,16 @@ from dlhdhr.app import create_app def main() -> None: + print("== CONFIG ==") + print(f"HOST: {config.HOST}") + print(f"PORT: {config.PORT}") + print(f"CHANNEL_EXCLUDE: {config.CHANNEL_EXCLUDE}") + print(f"CHANNEL_ALLOW: {config.CHANNEL_ALLOW}") + print(f"EPG_PROVIDER: {config.EPG_PROVIDER}") + if config.EPG_PROVIDER == "epg.best": + print(f"EPG_BEST_XMLTV_URL: {config.EPG_BEST_XMLTV_URL}") + print("====") + app = create_app() uvicorn.run(app, host=config.HOST, port=config.PORT)