1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-08 21:04:43 +00:00

Always report database errors

This commit is contained in:
M66B 2024-01-04 12:48:24 +01:00
parent 8b13ca08d2
commit 1177f6d9b6
2 changed files with 5 additions and 0 deletions

View file

@ -535,6 +535,7 @@ public abstract class DB extends RoomDatabase {
at androidx.sqlite.db.framework.FrameworkSQLiteOpenHelper.getWritableDatabase(FrameworkSQLiteOpenHelper.kt:104)
at androidx.room.RoomDatabase.inTransaction(RoomDatabase.java:706)
*/
Log.forceCrashReporting();
Log.e(ex);
// FrameworkSQLiteOpenHelper.innerGetDatabase will delete the database
throw ex;

View file

@ -317,6 +317,10 @@ public class Log {
}
}
static void forceCrashReporting() {
Bugsnag.resumeSession();
}
public static void breadcrumb(String name, Bundle args) {
Map<String, String> crumb = new HashMap<>();
for (String key : args.keySet()) {