Skip to main content

[Angular] Why are my errors no longer logging to the browser console when I enable Sentry?

Updated over a month ago

Issue

After enabling Sentry in my Angular App, errors stop logging to the browser console.

Applies To

  • Angular SDK users

Resolution

Sentry's Angular SDK hooks into the Angular error handler to send errors to Sentry. We suppress the logs sent from Angular's error handler by default.

It is possible to enable the logging to console again by passing the option logErrors: true to the error handler. See here for more information about the error handler options.

Did this answer your question?