Skip to content

Automate browser based workflows with AI

add organization_id to the Failed to create workflow error log (#905)

Shuchang Zheng6d6c9e281908
diff --git a/skyvern/forge/sdk/routes/agent_protocol.py b/skyvern/forge/sdk/routes/agent_protocol.py
index 2ecf8d7c8..b4cc079e5 100644
--- a/skyvern/forge/sdk/routes/agent_protocol.py
+++ b/skyvern/forge/sdk/routes/agent_protocol.py
@@ -671,7 +671,7 @@ async def create_workflow(
organization=current_org, request=workflow_create_request
)
except Exception as e:
- LOG.error("Failed to create workflow", exc_info=True)
+ LOG.error("Failed to create workflow", exc_info=True, organization_id=current_org.organization_id)
raise FailedToCreateWorkflow(str(e))