Description
The default SDK log level is debug. When you turn on option.debug = true the SDK logs too much information, so warnings and errors get lost. Instead the SDK should log only warnings and above when option.debug = true. Users can manually set the diagnosticLevel to debug if required. When we detect a debug build, we turn on debug = true, so you get only the warnings and errors. We still need to discuss if we're going to handle this as a breaking change or not, and we should create a meta issue for this to align across all SDKs.
This is also required to surface severe SDK misconfiguration or other errors clearly to the user such as: #4566
### 🛑 Blocked by
- [ ] https://github.com/getsentry/sentry-docs/pull/12100
Description
The default SDK log level is debug. When you turn on
option.debug = truethe SDK logs too much information, so warnings and errors get lost. Instead the SDK should log only warnings and above whenoption.debug = true. Users can manually set thediagnosticLevelto debug if required. When we detect a debug build, we turn on debug = true, so you get only the warnings and errors. We still need to discuss if we're going to handle this as a breaking change or not, and we should create a meta issue for this to align across all SDKs.This is also required to surface severe SDK misconfiguration or other errors clearly to the user such as: #4566