mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 18:27:43 +00:00
Simplification
This commit is contained in:
parent
da1f1d0648
commit
202e05eba0
1 changed files with 2 additions and 12 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue