Skip to content

Commit

Permalink
just log the url for 404s instead of the response
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Hatch committed Mar 22, 2024
1 parent fbbb9c1 commit ad39dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function handleError(
}

if (error instanceof NotFoundError) {
// don't send steller resource not founds to sentry
// don't send stellar resource not founds to sentry
// they are handled and error shown to user
// just log to console here for dev visibility
//
Expand All @@ -68,7 +68,7 @@ export function handleError(
//
// which is the correct response and renders correctly but for some reason
// remix is invoking this follow up that fails ...
console.warn(error.getResponse())
console.warn(`404 for ${request.url}`)
} else if (error instanceof Error) {
Sentry.captureRemixServerException(error, 'remix.server', request)
} else {
Expand Down

0 comments on commit ad39dd1

Please sign in to comment.