From d878ee5a0d0de0ec63fc46203e85e2c205d17228 Mon Sep 17 00:00:00 2001 From: Shuchang Zheng Date: Sat, 7 Sep 2024 17:02:37 -0700 Subject: [PATCH] get exc_info=True back from the last commit (#783) --- skyvern/forge/sdk/routes/streaming.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skyvern/forge/sdk/routes/streaming.py b/skyvern/forge/sdk/routes/streaming.py index 6bc26bbc..8bbc3692 100644 --- a/skyvern/forge/sdk/routes/streaming.py +++ b/skyvern/forge/sdk/routes/streaming.py @@ -36,6 +36,7 @@ async def task_stream( organization = await get_current_org(x_api_key=apikey, authorization=token) organization_id = organization.organization_id except Exception: + LOG.exception("Error while getting organization", task_id=task_id) try: await websocket.send_text("Invalid credential provided") except ConnectionClosedOK: @@ -109,7 +110,7 @@ async def task_stream( LOG.info("ConnectionClosedOK error while streaming", task_id=task_id, organization_id=organization_id) return except Exception: - LOG.warning("Error while streaming", task_id=task_id, organization_id=organization_id) + LOG.warning("Error while streaming", task_id=task_id, organization_id=organization_id, exc_info=True) return LOG.info("WebSocket connection closed successfully", task_id=task_id, organization_id=organization_id) return