diff --git a/pom.xml b/pom.xml index 51ceba9d2..56abd6012 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 org.maxgamer QuickShop - Reremake 2.2.1 + Reremake 2.2.2 diff --git a/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java b/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java index ccac6a85d..7115b629d 100644 --- a/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java +++ b/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java @@ -155,7 +155,7 @@ public class SentryErrorReporter { if (throwable == null) return false; Optional element = Arrays.stream(throwable.getStackTrace()) - .limit(5) + .limit(1) .filter(stackTraceElement -> stackTraceElement.getClassName().contains("org.maxgamer.quickshop")) .findFirst(); return element.isPresent(); @@ -244,16 +244,13 @@ public class SentryErrorReporter { //We didn't care normal logs. return true; } - /* Check stupid Sentry's Warning*/ - if (record.getMessage().contains("stacktrace.app.packages")) - return false; if (record.getThrown() == null) { //We didn't care warnings/errors for non-exception. return true; } /* Check is it cause by QS */ - if (!checkWasCauseByQS(record.getThrown()) && !checkWasCauseByQS(record.getThrown().getCause())) + if (!checkWasCauseByQS(record.getThrown())) return true; //Do not reporting when it is develop env.