sentry: Update for new maven version

This commit is contained in:
Owain van Brakel
2020-10-21 10:03:22 +02:00
parent dfc5875242
commit d56f4da47d
2 changed files with 1 additions and 3 deletions

View File

@@ -29,7 +29,6 @@ import com.google.inject.Binder;
import com.google.inject.Injector;
import com.google.inject.Module;
import io.reactivex.rxjava3.functions.Consumer;
import io.sentry.Sentry;
import java.lang.reflect.Method;
import java.util.Set;
import lombok.AccessLevel;
@@ -96,7 +95,6 @@ public abstract class Plugin implements Module, ExtensionPoint
if (method.getExceptionTypes().length != 0)
{
log.warn("Event handlers should handle all checked exceptions themselves " + method.toString());
Sentry.capture("EventHandler " + method.toString()); // Spam Owain's inbox with this :)
}
method.setAccessible(true);

View File

@@ -72,7 +72,7 @@ final class ClientPanel extends JPanel
{
JOptionPane.showMessageDialog(ClientUI.getFrame(), "Error loading Oldschool RuneScape!", "Error",
JOptionPane.ERROR_MESSAGE);
Sentry.capture(e);
Sentry.captureException(e);
}
((Client) client).getLogger().error(null, e);