diff --git a/gateway/config.py b/gateway/config.py index e60a70b4e..60387cc84 100644 --- a/gateway/config.py +++ b/gateway/config.py @@ -523,8 +523,13 @@ def load_gateway_config() -> GatewayConfig: os.environ["DISCORD_FREE_RESPONSE_CHANNELS"] = str(frc) if "auto_thread" in discord_cfg and not os.getenv("DISCORD_AUTO_THREAD"): os.environ["DISCORD_AUTO_THREAD"] = str(discord_cfg["auto_thread"]).lower() - except Exception: - pass + except Exception as e: + logger.warning( + "Failed to process config.yaml — falling back to .env / gateway.json values. " + "Check %s for syntax errors. Error: %s", + _home / "config.yaml", + e, + ) config = GatewayConfig.from_dict(gw_data)