mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Map Bugsnag severity
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user