From 77c17b705fa0dbb4ab51a4ba813efb97c370403c Mon Sep 17 00:00:00 2001 From: Asher Foa Date: Tue, 3 Jun 2025 13:58:28 -0400 Subject: [PATCH] more logging when org not found (#2569) --- skyvern/forge/sdk/services/org_auth_service.py | 1 + 1 file changed, 1 insertion(+) diff --git a/skyvern/forge/sdk/services/org_auth_service.py b/skyvern/forge/sdk/services/org_auth_service.py index f5431dcf..82b880e8 100644 --- a/skyvern/forge/sdk/services/org_auth_service.py +++ b/skyvern/forge/sdk/services/org_auth_service.py @@ -112,6 +112,7 @@ async def _get_current_org_cached(x_api_key: str, db: AgentDB) -> Organization: organization = await db.get_organization(organization_id=api_key_data.sub) if not organization: + LOG.warning("Organization not found", organization_id=api_key_data.sub, **payload) raise HTTPException(status_code=404, detail="Organization not found") # check if the token exists in the database