-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling console log (error, warn, etc) in browser #12618
Comments
any solution? |
I think you're looking for this: https://docs.sentry.io/enriching-error-data/breadcrumbs/?platform=browsernpm#breadcrumb-customization @kamilogorek - is there any other way for doing this? |
this helped me: Sentry.init({
. . .
debug: false, // before it was true
}) |
To add some more detail to this. Even if you add "debug: false" to Sentry.init(), Sentry will still log events to the console. Example on first page load: If I disable debugging in the Sentry init config, I would expect no console output from Sentry. |
@upschmidtcreek can you provide a repro for this? The log you pasted comes exactly from the debug logger, which is controlled by I'll kindly reopen this issue if reproducible code is provided. |
Regarding OPs question, no, there's no way to do this, as we don't overwrite the default handlers. |
(Since, this is of type question and feature request, posting here. Apologies)
When it comes to JavaScript, as Sentry is logging all console messages in its dashboard, is there anyway to hide those error / warn messages in browser? If not, kindly some config.
Idea is to avoid displaying errors in browser console for end users.. as we already captured those errors through Sentry. TIA
The text was updated successfully, but these errors were encountered: