File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
sentry-jul/src/main/java/io/sentry/jul Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 2626- Allow multiple UncaughtExceptionHandlerIntegrations to be active at the same time ([#4462](https://github.com/getsentry/sentry-java/pull/4462))
2727- Prevent repeated scroll target determination during a single scroll gesture ([#4557](https://github.com/getsentry/sentry-java/pull/4557))
2828 - This should reduce the number of ANRs seen in `SentryGestureListener`
29+ - Do not use Sentry logging API in JUL if logs are disabled ([#4574](https://github.com/getsentry/sentry-java/pull/4574))
30+ - This was causing Sentry SDK to log warnings: "Sentry Log is disabled and this 'logger' call is a no-op."
2931- Do not use Sentry logging API in Log4j2 if logs are disabled ([#4573](https://github.com/getsentry/sentry-java/pull/4573))
3032 - This was causing Sentry SDK to log warnings: "Sentry Log is disabled and this 'logger' call is a no-op."
3133
Original file line number Diff line number Diff line change @@ -111,7 +111,8 @@ public void publish(final @NotNull LogRecord record) {
111111 return ;
112112 }
113113 try {
114- if (record .getLevel ().intValue () >= minimumLevel .intValue ()) {
114+ if (ScopesAdapter .getInstance ().getOptions ().getLogs ().isEnabled ()
115+ && record .getLevel ().intValue () >= minimumLevel .intValue ()) {
115116 captureLog (record );
116117 }
117118 if (record .getLevel ().intValue () >= minimumEventLevel .intValue ()) {
You can’t perform that action at this time.
0 commit comments