You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to catch 404 errors so I can 1) prevent them from being logged in the console and 2) count them for alerting?
I want to stop them from being logged because my server's logs get analyzed for exceptions, e.g.
SvelteKitError: Not found: /web/wp-includes/wlwmanifest.xml
at .resolve2 ( file:///site/build/server/index.js:3414 )
at .resolve ( file:///site/build/server/index.js:3247 )
at .resolve ( file:///site/build/server/chunks/hooks.server-B0Tx0_fk.js:37 )
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there a way to catch 404 errors so I can 1) prevent them from being logged in the console and 2) count them for alerting?
I want to stop them from being logged because my server's logs get analyzed for exceptions, e.g.
Beta Was this translation helpful? Give feedback.
All reactions