From 4e9a96dce5d27ab5116f23794a3ee949f6f19905 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 10 Jun 2020 20:12:23 +0200 Subject: [PATCH] Added logging --- app/src/main/java/eu/faircode/email/Core.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 1fb82f26af..8a269bf338 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -1364,8 +1364,10 @@ class Core { List subscription = new ArrayList<>(); try { Folder[] isubscribed = defaultFolder.listSubscribed("*"); - for (Folder ifolder : isubscribed) + for (Folder ifolder : isubscribed) { subscription.add(ifolder.getFullName()); + Log.i("Subscribed " + defaultFolder.getFullName() + ":" + ifolder.getFullName()); + } } catch (MessagingException ex) { Log.e(account.name, ex); } @@ -1384,8 +1386,10 @@ class Core { try { Folder[] isubscribed = namespace.listSubscribed("*"); - for (Folder ifolder : isubscribed) + for (Folder ifolder : isubscribed) { subscription.add(ifolder.getFullName()); + Log.i("Subscribed " + namespace.getFullName() + ":" + ifolder.getFullName()); + } } catch (MessagingException ex) { Log.e(account.name, ex); } @@ -1397,6 +1401,7 @@ class Core { long duration = new Date().getTime() - start; Log.i("Remote folder count=" + ifolders.size() + + " subscriptions=" + subscription.size() + " separator=" + separator + " fetched in " + duration + " ms");