sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Set options.debug = true if we can reliably detect that the app runs in a debug build

Open krystofwoldrich opened this issue 11 months ago • 1 comments

  • https://github.com/getsentry/team-mobile/issues/201

Sentry RN has quite verbose logs, we should only consider this together with changing the default log level from debug to error or something similar not as verbose as debug.

We also need to consider the way Sentry JS uses log levels, as a significant amount of logs is coming from it.

The flag should be propagated to the native SDKs.

krystofwoldrich avatar Jan 17 '25 13:01 krystofwoldrich

@krystofwoldrich Detecting when we are running on a debug build surely is a todo task. Diagnostic Level is missing from Sentry JavaScript for filtering the logs, but it is available on the Native SDKs. We can set it to error on the native SDKs but it will have no impact on the JS SDK.

Do you think this is enough for this task? For the JS Logs, it requires changes to the JavaScript SDK. I can make the change but it mostly likely will only be merged on V9.

lucas-zimerman avatar Feb 12 '25 20:02 lucas-zimerman