mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-24 17:39:52 -05:00
Install controller for Sentry Reporter
Former-commit-id: fc355c93cf70208690710ba1a241495cddb0ff95 [formerly d4ef9268d219342eb21fffc2b4efc013faeae3ee] Former-commit-id: d11103f7861664bd66963b96276ff0897d870e75
This commit is contained in:
1 parent
8ab9efedbf
commit
0f331ace5d
1 file changed
+5
-1
@@ -32,7 +32,7 @@ public class SentryErrorReporter {
|
||||
sentryClient = SentryClientFactory.sentryClient(this.dsn);
|
||||
context = sentryClient.getContext();
|
||||
Util.debugLog("Setting basic report data...");
|
||||
context.addTag("plugin_version", QuickShop.getVersion());
|
||||
//context.addTag("plugin_version", QuickShop.getVersion());
|
||||
context.addTag("system_os", String.valueOf(serverData.get("osName")));
|
||||
context.addTag("system_arch", String.valueOf(serverData.get("osArch")));
|
||||
context.addTag("system_version", String.valueOf(serverData.get("osVersion")));
|
||||
@@ -51,6 +51,10 @@ public class SentryErrorReporter {
|
||||
plugin.getLogger().setFilter(new QuickShopExceptionFilter()); //Redirect log request passthrough our error catcher.
|
||||
Util.debugLog("Enabled!");
|
||||
enabled = true;
|
||||
if (!plugin.getConfig().getBoolean("auto-report-errors")) {
|
||||
Util.debugLog("Disabled!'");
|
||||
unit();
|
||||
}
|
||||
}
|
||||
|
||||
public void unit() {
|
||||
|
||||
Reference in new issue
Block a user