1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 02:07:12 +00:00

Log crashes

This commit is contained in:
M66B 2018-08-10 11:07:43 +00:00
parent 49ca586a6c
commit 511789993c

View file

@ -40,7 +40,8 @@ public class ApplicationEx extends Application {
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
@Override
public void uncaughtException(Thread thread, Throwable ex) {
Log.w(Helper.TAG, "Handling crash");
Log.e(Helper.TAG, ex + "\n" + Log.getStackTraceString(ex));
DB db = null;
try {
db = DB.getBlockingInstance(ApplicationEx.this);