Skip to content

Commit

Permalink
chore(ui): formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-online committed Nov 4, 2024
1 parent 738c409 commit 6748941
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ui/src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ export const handle: Handle = async ({ event, resolve }) => {
: null;

const start = performance.now();

const result = await resolve(event);

const end = performance.now();

console.log(`${new Date().toISOString()} [${event.request.method}] - ${result.status} ${event.url.toString()} - ${(end - start).toFixed(3)}ms`);
console.log(
`${new Date().toISOString()} [${event.request.method}] - ${result.status} ${event.url.toString()} - ${(end - start).toFixed(3)}ms`,
);

return result;
};

0 comments on commit 6748941

Please sign in to comment.