Skip to content

Commit 97171b5

Browse files
committed
log serialization failure
1 parent eaa36ad commit 97171b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sentry/src/main/java/io/sentry/clientreport/ClientReportRecorder.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ public void recordLostEnvelopeItem(
112112
recordLostEventInternal(
113113
reason.getReason(), DataCategory.LogByte.getCategory(), logBytes);
114114
executeOnDiscard(reason, itemCategory, count);
115+
} else {
116+
options.getLogger().log(SentryLevel.ERROR, "Unable to parse lost logs envelope item.");
115117
}
116118
} else {
117119
recordLostEventInternal(reason.getReason(), itemCategory.getCategory(), 1L);

0 commit comments

Comments
 (0)