From 3a995a55d3f9ce2bdbd4b64a4e4cd9054371d810 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 14 Aug 2020 09:44:56 +0200 Subject: [PATCH] Added logging --- .../main/java/eu/faircode/email/ServiceSynchronize.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 08291afef6..ba23fc27fb 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -771,7 +771,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences else { EntityLog.log(this, "### waking up account=" + account); if (!state.release()) - Log.e("Wakeup failed account=" + account); + EntityLog.log(this, "### waking up failed account=" + account); } } @@ -1389,6 +1389,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences throw new StoreClosedException(iservice.getStore(), "Unrecoverable"); // Sends store NOOP + EntityLog.log(ServiceSynchronize.this, account.name + " checking store"); if (!iservice.getStore().isConnected()) throw new StoreClosedException(iservice.getStore(), "NOOP"); @@ -1399,7 +1400,8 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences throw new StoreClosedException(iservice.getStore(), "App died"); } - if (sync) + if (sync) { + EntityLog.log(ServiceSynchronize.this, account.name + " checking folders"); for (EntityFolder folder : mapFolders.keySet()) if (folder.synchronize) if (!folder.poll && capIdle) { @@ -1413,6 +1415,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences db.folder().setFolderPollCount(folder.id, folder.poll_count); Log.i(folder.name + " poll count=" + folder.poll_count); } + } } catch (Throwable ex) { if (tune) { account.keep_alive_failed++;