From d092785f26458bba379887195073c3e10c7baa85 Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 8 Sep 2018 11:44:42 +0000 Subject: [PATCH] Reduce logging --- app/src/main/java/eu/faircode/email/ServiceSynchronize.java | 6 +++--- 1 file changed, 3 insertions(+), 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 cfc195e1..0b98b4f4 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -370,7 +370,7 @@ public class ServiceSynchronize extends LifecycleService { else action = account + "/" + folder; - EntityLog.log(this, action + "\n" + ex.toString() + "\n" + Log.getStackTraceString(ex)); + EntityLog.log(this, action + " " + Helper.formatThrowable(ex)); if (ex instanceof SendFailedException) { NotificationManager nm = getSystemService(NotificationManager.class); @@ -1695,10 +1695,10 @@ public class ServiceSynchronize extends LifecycleService { boolean joined = false; while (!joined) try { - EntityLog.log(this, "Joining " + thread.getName()); + Log.i(Helper.TAG, "Joining " + thread.getName()); thread.join(); joined = true; - EntityLog.log(this, "Joined " + thread.getName()); + Log.i(Helper.TAG, "Joined " + thread.getName()); } catch (InterruptedException ex) { Log.w(Helper.TAG, thread.getName() + " join " + ex.toString()); }