From 202e05eba06b8fdf467983f869fad43a3fbcdb94 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 26 Mar 2020 08:55:02 +0100 Subject: [PATCH] Simplification --- app/src/main/java/eu/faircode/email/Log.java | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Log.java b/app/src/main/java/eu/faircode/email/Log.java index 081fb08d56..71893eb565 100644 --- a/app/src/main/java/eu/faircode/email/Log.java +++ b/app/src/main/java/eu/faircode/email/Log.java @@ -169,12 +169,7 @@ public class Log { public static int w(String prefix, Throwable ex) { if (BuildConfig.BETA_RELEASE) try { - Bugsnag.notify(ex.getClass().getName(), prefix + ": " + ex.getMessage(), ex.getStackTrace(), new Callback() { - @Override - public void beforeNotify(@NonNull Report report) { - report.getError().setSeverity(Severity.INFO); - } - }); + Bugsnag.notify(ex, Severity.INFO); } catch (Throwable ex1) { ex1.printStackTrace(); } @@ -184,12 +179,7 @@ public class Log { public static int e(String prefix, Throwable ex) { if (BuildConfig.BETA_RELEASE) try { - Bugsnag.notify(ex.getClass().getName(), prefix + ": " + ex.getMessage(), ex.getStackTrace(), new Callback() { - @Override - public void beforeNotify(@NonNull Report report) { - report.getError().setSeverity(Severity.WARNING); - } - }); + Bugsnag.notify(ex, Severity.WARNING); } catch (Throwable ex1) { ex1.printStackTrace(); }