Commit 881bd7ad authored by Jamin Collins's avatar Jamin Collins

add more information to Sentry reports

Signed-off-by: Jamin Collins's avatarJamin W. Collins <jamin.collins@gmail.com>
parent b0e2450a
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment