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
{{ message }}
Repository navigation
Disabling console log (error, warn, etc) in browser #12618
(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
@upschmidtcreek can you provide a repro for this? The log you pasted comes exactly from the debug logger, which is controlled by debug config in init call.
I'll kindly reopen this issue if reproducible code is provided.
Activity
sultan99 commentedon Dec 12, 2019
any solution?
BYK commentedon Dec 12, 2019
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?
sultan99 commentedon Dec 12, 2019
this helped me:
upschmidtcreek commentedon Feb 25, 2020
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:
Sentry Logger [Log]: Integration installed: InboundFilters
Sentry Logger [Log]: Integration installed: FunctionToString
Sentry Logger [Log]: Integration installed: TryCatch
Sentry Logger [Log]: Integration installed: Breadcrumbs
Sentry Logger [Log]: Global Handler attached: onerror
Sentry Logger [Log]: Global Handler attached: onunhandledrejection
Sentry Logger [Log]: Integration installed: GlobalHandlers
Sentry Logger [Log]: Integration installed: LinkedErrors
Sentry Logger [Log]: Integration installed: UserAgent
If I disable debugging in the Sentry init config, I would expect no console output from Sentry.
kamilogorek commentedon Feb 25, 2020
@upschmidtcreek can you provide a repro for this? The log you pasted comes exactly from the debug logger, which is controlled by
debugconfig ininitcall.I'll kindly reopen this issue if reproducible code is provided.
kamilogorek commentedon Feb 25, 2020
Regarding OPs question, no, there's no way to do this, as we don't overwrite the default handlers.
fix(dashboards): Deprecate discover in docs (#84979)