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

Reduce logging

This commit is contained in:
M66B 2018-09-08 11:44:42 +00:00
parent 6433ff0ebe
commit d092785f26

View file

@ -370,7 +370,7 @@ public class ServiceSynchronize extends LifecycleService {
else else
action = account + "/" + folder; 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) { if (ex instanceof SendFailedException) {
NotificationManager nm = getSystemService(NotificationManager.class); NotificationManager nm = getSystemService(NotificationManager.class);
@ -1695,10 +1695,10 @@ public class ServiceSynchronize extends LifecycleService {
boolean joined = false; boolean joined = false;
while (!joined) while (!joined)
try { try {
EntityLog.log(this, "Joining " + thread.getName()); Log.i(Helper.TAG, "Joining " + thread.getName());
thread.join(); thread.join();
joined = true; joined = true;
EntityLog.log(this, "Joined " + thread.getName()); Log.i(Helper.TAG, "Joined " + thread.getName());
} catch (InterruptedException ex) { } catch (InterruptedException ex) {
Log.w(Helper.TAG, thread.getName() + " join " + ex.toString()); Log.w(Helper.TAG, thread.getName() + " join " + ex.toString());
} }