Simplification

pull/177/head
M66B 5 years ago
parent da1f1d0648
commit 202e05eba0

@ -169,12 +169,7 @@ public class Log {
public static int w(String prefix, Throwable ex) { public static int w(String prefix, Throwable ex) {
if (BuildConfig.BETA_RELEASE) if (BuildConfig.BETA_RELEASE)
try { try {
Bugsnag.notify(ex.getClass().getName(), prefix + ": " + ex.getMessage(), ex.getStackTrace(), new Callback() { Bugsnag.notify(ex, Severity.INFO);
@Override
public void beforeNotify(@NonNull Report report) {
report.getError().setSeverity(Severity.INFO);
}
});
} catch (Throwable ex1) { } catch (Throwable ex1) {
ex1.printStackTrace(); ex1.printStackTrace();
} }
@ -184,12 +179,7 @@ public class Log {
public static int e(String prefix, Throwable ex) { public static int e(String prefix, Throwable ex) {
if (BuildConfig.BETA_RELEASE) if (BuildConfig.BETA_RELEASE)
try { try {
Bugsnag.notify(ex.getClass().getName(), prefix + ": " + ex.getMessage(), ex.getStackTrace(), new Callback() { Bugsnag.notify(ex, Severity.WARNING);
@Override
public void beforeNotify(@NonNull Report report) {
report.getError().setSeverity(Severity.WARNING);
}
});
} catch (Throwable ex1) { } catch (Throwable ex1) {
ex1.printStackTrace(); ex1.printStackTrace();
} }

Loading…
Cancel
Save