Issue
Before adding Sentry to my Remix app, my server errors logged to console. After adding Sentry, my server errors no longer log to Sentry.
Applies To
- Users of the Remix SDK
Resolution
The default behavior of Remix's error handler will
console.error()
the server errors to the console. When Sentry is added, Sentry edits the default Remix error handler to add a function that sends the errors to Sentry instead. To add the error logging back, edit the handleError()
within the entry.server.tsx
and add back the console.error()
to get the error logs back to your console.