File tree Expand file tree Collapse file tree
sentry-log4j2/src/main/java/io/sentry/log4j2
sentry-samples/sentry-samples-log4j2/src/main/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828 - This should reduce the number of ANRs seen in `SentryGestureListener`
2929- Do not use Sentry logging API in JUL if logs are disabled ([#4574](https://github.com/getsentry/sentry-java/pull/4574))
3030 - This was causing Sentry SDK to log warnings: "Sentry Log is disabled and this 'logger' call is a no-op."
31+ - Do not use Sentry logging API in Log4j2 if logs are disabled ([#4573](https://github.com/getsentry/sentry-java/pull/4573))
32+ - This was causing Sentry SDK to log warnings: "Sentry Log is disabled and this 'logger' call is a no-op."
3133
3234## 8.17.0
3335
Original file line number Diff line number Diff line change @@ -191,7 +191,8 @@ public void start() {
191191
192192 @ Override
193193 public void append (final @ NotNull LogEvent eventObject ) {
194- if (eventObject .getLevel ().isMoreSpecificThan (minimumLevel )) {
194+ if (scopes .getOptions ().getLogs ().isEnabled ()
195+ && eventObject .getLevel ().isMoreSpecificThan (minimumLevel )) {
195196 captureLog (eventObject );
196197 }
197198 if (eventObject .getLevel ().isMoreSpecificThan (minimumEventLevel )) {
Original file line number Diff line number Diff line change 11in-app-includes =" io.sentry.samples"
22logs.enabled =true
3+ debug =true
You can’t perform that action at this time.
0 commit comments