disable error reporting in dev environment

This commit is contained in:
Julian Krings committed 2025-06-13 12:27:03 +02:00
1 parent 7b7118fe0d
commit f32f73e65a
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -955,7 +955,7 @@ public class Iris extends VolmitPlugin implements Listener {
private static void setupSentry() {
var settings = IrisSettings.get().getSentry();
if (settings.disableAutoReporting || Sentry.isEnabled()) return;
if (settings.disableAutoReporting || Sentry.isEnabled() || !Boolean.getBoolean("iris.errorReporting")) return;
Iris.info("Enabling Sentry for anonymous error reporting. You can disable this in the settings.");
Iris.info("Your server ID is: " + ServerID.ID);
Sentry.init(options -> {