Skip to content

Excessive logs "Sentry Log is disabled and this 'logger' call is a no-op." #4571

@Drareeg

Description

@Drareeg

Integration

sentry-log4j2

Java Version

21

Version

8.17.0

Steps to Reproduce

8.15.0 introduced this, versions before that did not have the logging.

  1. sentry.logs.enabled: false (the default)
  2. dependency: implementation "io.sentry:sentry-log4j2"
  3. log anything on a level of at least sentry.logging.minimum-level

Expected Result

No logging (just like in versions before 8.15.0).

Actual Result

"Sentry Log is disabled and this 'logger' call is a no-op." is logged each time for every log, causing massive amounts of extra logging (and associated costs). In my setup this has logged 70 million lines over the past month.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions