Skip to content

Change default log level to warningΒ #4467

@philipphofmann

Description

@philipphofmann

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions