mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-27 08:23:24 +00:00
Improved error reporting
This commit is contained in:
parent
9b6366f3af
commit
73e8335f9e
1 changed files with 4 additions and 3 deletions
|
@ -169,7 +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.getStackTrace(), new Callback() {
|
||||
Bugsnag.notify(ex.getClass().getName(), prefix + ": " + ex.getMessage(), ex.getStackTrace(), new Callback() {
|
||||
@Override
|
||||
public void beforeNotify(@NonNull Report report) {
|
||||
report.getError().setSeverity(Severity.INFO);
|
||||
|
@ -184,7 +184,7 @@ public class Log {
|
|||
public static int e(String prefix, Throwable ex) {
|
||||
if (BuildConfig.BETA_RELEASE)
|
||||
try {
|
||||
Bugsnag.notify(ex.getClass().getName(), prefix, ex.getStackTrace(), new Callback() {
|
||||
Bugsnag.notify(ex.getClass().getName(), prefix + ": " + ex.getMessage(), ex.getStackTrace(), new Callback() {
|
||||
@Override
|
||||
public void beforeNotify(@NonNull Report report) {
|
||||
report.getError().setSeverity(Severity.WARNING);
|
||||
|
@ -282,7 +282,8 @@ public class Log {
|
|||
return false;
|
||||
|
||||
Throwable ex = report.getError().getException();
|
||||
return shouldNotify(ex);
|
||||
boolean should = shouldNotify(ex);
|
||||
return should;
|
||||
}
|
||||
|
||||
private boolean shouldNotify(Throwable ex) {
|
||||
|
|
Loading…
Reference in a new issue