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);