From 511789993c99fc0a3acd492ab3eeef0b43923d29 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 10 Aug 2018 11:07:43 +0000 Subject: [PATCH] Log crashes --- app/src/main/java/eu/faircode/email/ApplicationEx.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/ApplicationEx.java b/app/src/main/java/eu/faircode/email/ApplicationEx.java index e2bf2d6fdb..69370c913c 100644 --- a/app/src/main/java/eu/faircode/email/ApplicationEx.java +++ b/app/src/main/java/eu/faircode/email/ApplicationEx.java @@ -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);