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
App crashes with Sentry console logging integration in SDK 9.37.0 #16920
Hey team, came across a problem when setting up logs for javascript, on our latest SDK version 9.37.0. My app will crash when enabling Sentry.consoleLoggingIntegration({levels: [‘log’]}), logging with Sentry.logger.warn('test'), and then using console log in beforeSendLog. Seems it is getting called recursively and crashes in chrome but in firefox it will show:
Activity
mydea commentedon Jul 11, 2025
can we avoid this? 🤔 I guess we could call beforeSendLog in consoleSandbox...?
AbhiPrasad commentedon Jul 11, 2025
yup that's the fix, we need to use
consoleSandboxlike we do forbeforeBreadcrumbfix(core): Wrap `beforeSendLog` in `consoleSandbox` (#16968)
github-actions commentedon Jul 15, 2025
A PR closing this issue has just been released 🚀
This issue was referenced by PR #16968, which was included in the 9.39.0 release.