mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
add more information to Sentry reports
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -24,6 +24,7 @@ import forge.card.CardReaderExperiments;
|
||||
import forge.error.ExceptionHandler;
|
||||
import forge.util.BuildInfo;
|
||||
import io.sentry.Sentry;
|
||||
import io.sentry.SentryClient;
|
||||
|
||||
/**
|
||||
* Main class for Forge's swing application view.
|
||||
@@ -34,7 +35,10 @@ public final class Main {
|
||||
*/
|
||||
public static void main(final String[] args) {
|
||||
Sentry.init();
|
||||
Sentry.getStoredClient().setRelease(BuildInfo.getVersionString());
|
||||
SentryClient sentryClient = Sentry.getStoredClient();
|
||||
sentryClient.setRelease(BuildInfo.getVersionString());
|
||||
sentryClient.setEnvironment(System.getProperty("os.name"));
|
||||
sentryClient.addTag("Java Version", System.getProperty("java.version"));
|
||||
|
||||
// HACK - temporary solution to "Comparison method violates it's general contract!" crash
|
||||
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");
|
||||
|
||||
Reference in New Issue
Block a user