From c361bd127dfbc8a2f01c7554597862611c4c02a9 Mon Sep 17 00:00:00 2001 From: ajaysi Date: Mon, 6 Apr 2026 12:11:14 +0530 Subject: [PATCH] Add debug logging to is_podcast_only_demo_mode function --- backend/app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index 695cfca7..d947df9b 100644 --- a/backend/app.py +++ b/backend/app.py @@ -45,8 +45,12 @@ def get_enabled_features() -> set: def is_podcast_only_demo_mode() -> bool: """Check if podcast-only mode is enabled.""" + import os + env_val = os.getenv("ALWRITY_ENABLED_FEATURES", "all") enabled = get_enabled_features() - return "podcast" in enabled and "all" not in enabled + result = "podcast" in enabled and "all" not in enabled + print(f"[DEBUG] is_podcast_only_demo_mode: ALWRITY_ENABLED_FEATURES={env_val}, enabled={enabled}, result={result}", flush=True) + return result # Podcast-only check BEFORE heavy imports