This commit is contained in:
Valentin Brandl 2024-08-28 16:12:38 +02:00
parent 2dce93640d
commit c9990e9d30
2 changed files with 3 additions and 3 deletions

View File

@ -24,9 +24,9 @@ export const handle: Handle = async ({ event, resolve }) => {
// make requestId available to handlers // make requestId available to handlers
event.locals.requestId = requestId; event.locals.requestId = requestId;
const { executionTime, result: response } = await timedExecution(async () => { const { executionTime, result: response } = await timedExecution(
return await resolve(event); async () => await resolve(event)
}); );
response.headers.set(requestIdHeader, requestId); response.headers.set(requestIdHeader, requestId);
log.info( log.info(