mirror of https://github.com/M66B/FairEmail.git
Map Bugsnag severity
This commit is contained in:
parent
c94c40de06
commit
b92723f76c
|
@ -48,22 +48,22 @@ public class Log {
|
|||
}
|
||||
|
||||
public static int w(Throwable ex) {
|
||||
Bugsnag.notify(ex, Severity.WARNING);
|
||||
Bugsnag.notify(ex, Severity.INFO);
|
||||
return android.util.Log.w(TAG, ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
}
|
||||
|
||||
public static int e(Throwable ex) {
|
||||
Bugsnag.notify(ex, Severity.ERROR);
|
||||
Bugsnag.notify(ex, Severity.WARNING);
|
||||
return android.util.Log.e(TAG, ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
}
|
||||
|
||||
public static int w(String prefix, Throwable ex) {
|
||||
Bugsnag.notify(ex, Severity.WARNING);
|
||||
Bugsnag.notify(ex, Severity.INFO);
|
||||
return android.util.Log.w(TAG, prefix + " " + ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
}
|
||||
|
||||
public static int e(String prefix, Throwable ex) {
|
||||
Bugsnag.notify(ex, Severity.ERROR);
|
||||
Bugsnag.notify(ex, Severity.WARNING);
|
||||
return android.util.Log.e(TAG, prefix + " " + ex + "\n" + android.util.Log.getStackTraceString(ex));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue