mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-07-02 21:11:03 +12:00
Fix logs attribute
This commit is contained in:
parent
bfef4e1426
commit
277f7f8c04
|
@ -180,7 +180,7 @@ public class SentryErrorHandler implements ErrorHandler {
|
||||||
s.setTag("terminal", Boolean.toString(ee.isTerminal()));
|
s.setTag("terminal", Boolean.toString(ee.isTerminal()));
|
||||||
s.setTag("omitted", Boolean.toString(ee.isOmitted()));
|
s.setTag("omitted", Boolean.toString(ee.isOmitted()));
|
||||||
s.setTag("diagnostics", Boolean.toString(ee.isShouldSendDiagnostics()));
|
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;
|
var exMessage = ee.getThrowable() != null ? ee.getThrowable().getMessage() : null;
|
||||||
if (ee.getDescription() != null && !ee.getDescription().equals(exMessage) && ee.isShouldSendDiagnostics()) {
|
if (ee.getDescription() != null && !ee.getDescription().equals(exMessage) && ee.isShouldSendDiagnostics()) {
|
||||||
|
|
Loading…
Reference in a new issue