Browse Source

print config on startup

main
Brett Langdon 2 years ago
parent
commit
8e3b9b7447
No known key found for this signature in database GPG Key ID: 9BAD4322A65AD78B
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      src/dlhdhr/__main__.py

+ 10
- 0
src/dlhdhr/__main__.py View File

@ -5,6 +5,16 @@ from dlhdhr.app import create_app
def main() -> None: 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() app = create_app()
uvicorn.run(app, host=config.HOST, port=config.PORT) uvicorn.run(app, host=config.HOST, port=config.PORT)


Loading…
Cancel
Save