From 59bc3bd5e3c42407a891392261fbf700200a0b4f Mon Sep 17 00:00:00 2001
From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com>
Date: Wed, 22 Jan 2020 23:41:36 +0800
Subject: [PATCH 1/2] Update pom.xml
Former-commit-id: 9412dfe5951ff3678e27d077bd68231ba61beb2d
---
pom.xml | 4 ----
1 file changed, 4 deletions(-)
diff --git a/pom.xml b/pom.xml
index 8cf3a9f64..5476bf21c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -67,10 +67,6 @@
org.maxgamer.quickshop.commodore
-
- io.sentry
- org.maxgamer.quickshop.shade.relocation.sentry
-
From c667ca675ed2397b14965beaeebc9b7a5078d455 Mon Sep 17 00:00:00 2001
From: Ghost_chu <30802565+Ghost-chu@users.noreply.github.com>
Date: Wed, 22 Jan 2020 23:46:47 +0800
Subject: [PATCH 2/2] Update SentryErrorReporter.java
Former-commit-id: 9a05d4422d1d4ee977765ab6bdf93126609669da
---
.../java/org/maxgamer/quickshop/Util/SentryErrorReporter.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java b/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java
index 2f2db9914..09377cc9d 100644
--- a/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java
+++ b/src/main/java/org/maxgamer/quickshop/Util/SentryErrorReporter.java
@@ -47,7 +47,7 @@ import org.maxgamer.quickshop.Watcher.UpdateWatcher;
/** Auto report errors to qs's sentry. */
public class SentryErrorReporter {
private final String dsn =
- "https://6a7881aa07164412bcb84a0f76253ae9@sentry.io/1473041?"
+ "https://1d14223850ee44b284b11734461ebbc5@sentry.io/1473041?"
+ "stacktrace.app.packages=org.maxgamer.quickshop";
private final ArrayList reported = new ArrayList<>();
private Context context;
@@ -64,7 +64,7 @@ public class SentryErrorReporter {
this.plugin = plugin;
// sentryClient = Sentry.init(dsn);
Util.debugLog("Loading SentryErrorReporter");
- sentryClient = Sentry.init(dsn);;
+ sentryClient = SentryClientFactory.create(dsn);;
context = sentryClient.getContext();
Util.debugLog("Setting basic report data...");
// context.addTag("plugin_version", QuickShop.getVersion());