mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
senty improve
Former-commit-id: 49114688c51a46adf1e609dc9bf5fa0173953b33 [formerly 13f03b92eeeec6f695ad79060052b45af5ade6f2] Former-commit-id: 42a0aaf9e6f83924fd3bbc77a56efe5199687a0e
This commit is contained in:
1 parent
58e8e87049
commit
12208dfc19
2 files changed
+3
-6
No files matched your search
@@ -155,7 +155,7 @@ public class SentryErrorReporter {
|
||||
if (throwable == null)
|
||||
return false;
|
||||
Optional<StackTraceElement> 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.
|
||||
|
||||
Reference in new issue
Block a user