diff --git a/pom.xml b/pom.xml
index d98329b..5a59d81 100644
--- a/pom.xml
+++ b/pom.xml
@@ -129,6 +129,13 @@
spring-boot-actuator-autoconfigure
+
+
+ io.sentry
+ sentry
+ 1.7.27
+
+
com.influxdb
diff --git a/src/main/java/xyz/mcutils/backend/Main.java b/src/main/java/xyz/mcutils/backend/Main.java
index 2e98d64..06a18c7 100644
--- a/src/main/java/xyz/mcutils/backend/Main.java
+++ b/src/main/java/xyz/mcutils/backend/Main.java
@@ -2,6 +2,7 @@ package xyz.mcutils.backend;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
+import io.sentry.Sentry;
import lombok.SneakyThrows;
import lombok.extern.log4j.Log4j2;
import org.springframework.boot.SpringApplication;
@@ -33,6 +34,14 @@ public class Main {
}
log.info("Found configuration at '{}'", config.getAbsolutePath()); // Log the found config
- SpringApplication.run(Main.class, args); // Start the application
+ // Init Sentry
+ Sentry.init();
+ Sentry.init("https://631d4c96be4d48d1bd1b3ea612cbcee7@glitchtip.fascinated.cc/2");
+
+ try {
+ SpringApplication.run(Main.class, args); // Start the application
+ } catch(Exception ex) {
+ Sentry.capture(ex); // Capture the exception with Sentry
+ }
}
}
\ No newline at end of file