From c3b043ef1e69c7e904d08edf004159a01b299b3e Mon Sep 17 00:00:00 2001 From: Konstantin Wohlwend Date: Thu, 4 Jun 2026 15:57:55 -0700 Subject: [PATCH] Log project ID with every request --- apps/backend/src/route-handlers/smart-route-handler.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/route-handlers/smart-route-handler.tsx b/apps/backend/src/route-handlers/smart-route-handler.tsx index 33eace284..dd9e4a05a 100644 --- a/apps/backend/src/route-handlers/smart-route-handler.tsx +++ b/apps/backend/src/route-handlers/smart-route-handler.tsx @@ -126,7 +126,7 @@ export function handleApiRequest(handler: (req: NextRequest, options: any, reque } }); - if (!disableExtendedLogging) console.log(`[API REQ] [${requestId}] ${req.method} ${censoredUrl}`); + if (!disableExtendedLogging) console.log(`[API REQ] [${requestId} @ ${req.headers.get("x-stack-project-id") ?? ""}] ${req.method} ${censoredUrl}`); const timeStart = performance.now(); const res = await handler(req, options, requestId); const time = (performance.now() - timeStart);