Simplify
This commit is contained in:
parent
2dce93640d
commit
c9990e9d30
@ -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(
|
||||||
|
Reference in New Issue
Block a user