Fix logs attribute

This commit is contained in:
crschnick 2024-01-09 01:33:21 +00:00
parent bfef4e1426
commit 277f7f8c04

View file

@ -180,7 +180,7 @@ public class SentryErrorHandler implements ErrorHandler {
s.setTag("terminal", Boolean.toString(ee.isTerminal()));
s.setTag("omitted", Boolean.toString(ee.isOmitted()));
s.setTag("diagnostics", Boolean.toString(ee.isShouldSendDiagnostics()));
s.setTag("logs", Boolean.toString(!ee.getAttachments().isEmpty()));
s.setTag("logs", Boolean.toString(ee.isShouldSendDiagnostics() && !ee.getAttachments().isEmpty()));
var exMessage = ee.getThrowable() != null ? ee.getThrowable().getMessage() : null;
if (ee.getDescription() != null && !ee.getDescription().equals(exMessage) && ee.isShouldSendDiagnostics()) {