From a5aad0da7e936f3cc5dda3fade472b3dbb3dfd90 Mon Sep 17 00:00:00 2001 From: Lars Date: Sat, 18 Apr 2026 08:34:35 +0200 Subject: [PATCH] debug: add logging to execute_unified_prompt_stream function --- backend/routers/prompts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/routers/prompts.py b/backend/routers/prompts.py index 5571324..6d999de 100644 --- a/backend/routers/prompts.py +++ b/backend/routers/prompts.py @@ -1452,6 +1452,7 @@ async def execute_unified_prompt_stream( save: bool = Query(False, description="Save result to ai_insights"), session: dict = Depends(require_auth_flexible) ): + print("[EXECUTE_STREAM] Endpoint function called!") # DEBUG """ Execute a unified prompt with Server-Sent Events (SSE) streaming. @@ -1463,6 +1464,7 @@ async def execute_unified_prompt_stream( Use this endpoint for long-running workflows (>30s) to avoid gateway timeouts. """ + print(f"[EXECUTE_STREAM] session={repr(session)}") # DEBUG profile_id = session['profile_id'] # Use default modules/timeframes (SSE doesn't support complex params)