From 9ddecc91f7882dfe57b790da07225ee97a07829f Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 4 Sep 2018 12:33:59 +0000 Subject: [PATCH] Log full stack trace --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 7d97bdb7fb..8274bb8456 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -367,9 +367,7 @@ public class ServiceSynchronize extends LifecycleService { else action = account + "/" + folder; - StackTraceElement[] ste = ex.getStackTrace(); - EntityLog.log(this, action + "\n" + ex.toString() + - (ste != null && ste.length > 0 ? "\n" + ste[0].toString() : "")); + EntityLog.log(this, action + "\n" + ex.toString() + "\n" + Log.getStackTraceString(ex)); if (!(ex instanceof MailConnectException) && !(ex instanceof FolderClosedException) &&