Skip to content

Commit

Permalink
Do not log api requests
Browse files Browse the repository at this point in the history
  • Loading branch information
SirMorfield committed Oct 5, 2023
1 parent 46d9d2f commit 29c0b32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/hooks.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ const injectHandle: Handle = async ({ event, resolve }) => {
}

const logHandle: Handle = ({ event, resolve }) => {
console.log(event.url.pathname + event.url.search, '|', event.route.id)
if (!event.url.pathname.startsWith('/api')) {
console.log(event.url.pathname + event.url.search, '|', event.route.id)
}
return resolve(event)
}

Expand Down

0 comments on commit 29c0b32

Please sign in to comment.