Added logging

This commit is contained in:
M66B 2020-06-21 13:30:00 +02:00
parent 20ec5d1087
commit 5b2dbea130
1 changed files with 6 additions and 2 deletions

View File

@ -1365,8 +1365,10 @@ class Core {
Folder[] isubscribed = defaultFolder.listSubscribed("*");
for (Folder ifolder : isubscribed) {
String fullName = ifolder.getFullName();
if (TextUtils.isEmpty(fullName))
if (TextUtils.isEmpty(fullName)) {
Log.e("Subscribed folder name empty namespace=" + defaultFolder.getFullName());
continue;
}
subscription.add(fullName);
Log.i("Subscribed " + defaultFolder.getFullName() + ":" + fullName);
}
@ -1398,8 +1400,10 @@ class Core {
Folder[] isubscribed = namespace.listSubscribed("*");
for (Folder ifolder : isubscribed) {
String fullName = ifolder.getFullName();
if (TextUtils.isEmpty(fullName))
if (TextUtils.isEmpty(fullName)) {
Log.e("Subscribed folder name empty namespace=" + namespace.getFullName());
continue;
}
subscription.add(fullName);
Log.i("Subscribed " + namespace.getFullName() + ":" + fullName);
}