Browse Source

Log crashes

main
M66B 6 years ago
parent
commit
511789993c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/src/main/java/eu/faircode/email/ApplicationEx.java

+ 2
- 1
app/src/main/java/eu/faircode/email/ApplicationEx.java 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);


Loading…
Cancel
Save