diff --git a/CHANGELOG.md b/CHANGELOG.md index 23c0e6ba7a..8a87868398 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * Improve Kotlin compatibility for SdkVersion (#1213) * Feat: Support logging via JUL (#1211) * Fix: Fix returning Sentry trace header from Span (#1217) +* Fix: Remove misleading error logs (#1222) # 4.0.0 diff --git a/sentry/src/main/java/io/sentry/Hub.java b/sentry/src/main/java/io/sentry/Hub.java index 47b0eddb77..5a84b84d4a 100644 --- a/sentry/src/main/java/io/sentry/Hub.java +++ b/sentry/src/main/java/io/sentry/Hub.java @@ -312,7 +312,6 @@ public void setUser(final @Nullable User user) { .log(SentryLevel.WARNING, "Instance is disabled and this 'setUser' call is a no-op."); } else { stack.peek().getScope().setUser(user); - options.getLogger().log(SentryLevel.FATAL, "Stack peek was null when setUser"); } } @@ -328,7 +327,6 @@ public void setFingerprint(final @NotNull List fingerprint) { options.getLogger().log(SentryLevel.WARNING, "setFingerprint called with null parameter."); } else { stack.peek().getScope().setFingerprint(fingerprint); - options.getLogger().log(SentryLevel.FATAL, "Stack peek was null when setFingerprint"); } } @@ -342,7 +340,6 @@ public void clearBreadcrumbs() { "Instance is disabled and this 'clearBreadcrumbs' call is a no-op."); } else { stack.peek().getScope().clearBreadcrumbs(); - options.getLogger().log(SentryLevel.FATAL, "Stack peek was null when clearBreadcrumbs"); } }