Skip to content

Commit 2d19800

Browse files
authored
Merge dbdc7df into 4ca1d7b
2 parents 4ca1d7b + dbdc7df commit 2d19800

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Fixes
6+
7+
- Remove verbose FrameMetricsAggregator failure logging ([#2293](https://github.com/getsentry/sentry-java/pull/2293))
8+
39
## 6.5.0
410

511
### Fixes

sentry-android-core/src/main/java/io/sentry/android/core/ActivityFramesTracker.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ public synchronized void setMetrics(
140140
// there was no
141141
// Observers, See
142142
// https://android.googlesource.com/platform/frameworks/base/+/140ff5ea8e2d99edc3fbe63a43239e459334c76b
143-
runSafelyOnUiThread(
144-
() -> frameMetricsAggregator.remove(activity), "FrameMetricsAggregator.remove");
143+
runSafelyOnUiThread(() -> frameMetricsAggregator.remove(activity), null);
145144

146145
final @Nullable FrameCounts frameCounts = diffFrameCountsAtEnd(activity);
147146

@@ -215,16 +214,16 @@ private void runSafelyOnUiThread(final Runnable runnable, final String tag) {
215214
() -> {
216215
try {
217216
runnable.run();
218-
} catch (Throwable t) {
219-
if (logger != null) {
220-
logger.log(SentryLevel.ERROR, "Failed to execute " + tag, t);
217+
} catch (Throwable ignored) {
218+
if (logger != null && tag != null) {
219+
logger.log(SentryLevel.WARNING, "Failed to execute " + tag);
221220
}
222221
}
223222
});
224223
}
225-
} catch (Throwable t) {
226-
if (logger != null) {
227-
logger.log(SentryLevel.ERROR, "Failed to execute " + tag, t);
224+
} catch (Throwable ignored) {
225+
if (logger != null && tag != null) {
226+
logger.log(SentryLevel.WARNING, "Failed to execute " + tag);
228227
}
229228
}
230229
}

0 commit comments

Comments
 (0)