Merge "Improve error logging for mailboxNotification." into jb-ub-mail-ur9

This commit is contained in:
Yu Ping Hu 2013-04-02 00:36:48 +00:00 committed by Android (Google) Code Review
commit 3bef153c9c

View File

@ -582,7 +582,8 @@ public class NotificationController {
UIProvider.FOLDERS_PROJECTION, null, null, null); UIProvider.FOLDERS_PROJECTION, null, null, null);
if (folderCursor == null) { if (folderCursor == null) {
LogUtils.e(LOG_TAG, "Null folder cursor for mMailboxId %d", mailboxId); LogUtils.e(LOG_TAG, "Null folder cursor for account %d, mailbox %d",
mAccountId, mailboxId);
continue; continue;
} }
@ -591,7 +592,8 @@ public class NotificationController {
if (folderCursor.moveToFirst()) { if (folderCursor.moveToFirst()) {
folder = new Folder(folderCursor); folder = new Folder(folderCursor);
} else { } else {
LogUtils.e(LOG_TAG, "Empty folder cursor for mMailboxId %d", mailboxId); LogUtils.e(LOG_TAG, "Empty folder cursor for account %d, mailbox %d",
mAccountId, mailboxId);
continue; continue;
} }
} finally { } finally {