Add some logging
Change-Id: Ib26ffad0bb6841361b8ee7be4ee2a6255d509ae2
This commit is contained in:
parent
0d233273de
commit
921c04d2ac
|
@ -882,6 +882,8 @@ public class Mailbox extends EmailContent implements MailboxColumns, Parcelable
|
|||
extras.putLong(SYNC_EXTRA_MAILBOX_ID, mailboxId);
|
||||
extras.putBoolean(ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS, true);
|
||||
ContentResolver.requestSync(account, AUTHORITY, extras);
|
||||
LogUtils.i(Logging.LOG_TAG, "requestSync resyncMailbox %s, %s",
|
||||
account.toString(), extras.toString());
|
||||
} catch (RemoteException e) {
|
||||
LogUtils.w(Logging.LOG_TAG, e, "Failed to wipe mailbox %d", mailboxId);
|
||||
} catch (OperationApplicationException e) {
|
||||
|
|
|
@ -574,6 +574,8 @@ public class SecurityPolicy {
|
|||
extras.putBoolean(ContentResolver.SYNC_EXTRAS_DO_NOT_RETRY, true);
|
||||
extras.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
|
||||
ContentResolver.requestSync(amAccount, EmailContent.AUTHORITY, extras);
|
||||
LogUtils.i(TAG, "requestSync SecurityPolicy syncAccount %s, %s", account.toString(),
|
||||
extras.toString());
|
||||
}
|
||||
|
||||
public void syncAccount(final Account account) {
|
||||
|
|
|
@ -4936,6 +4936,8 @@ public class EmailProvider extends ContentProvider {
|
|||
extras.putString(EmailServiceStatus.SYNC_EXTRAS_CALLBACK_METHOD,
|
||||
SYNC_STATUS_CALLBACK_METHOD);
|
||||
ContentResolver.requestSync(account, EmailContent.AUTHORITY, extras);
|
||||
LogUtils.i(TAG, "requestSync EmailProvider startSync %s, %s", account.toString(),
|
||||
extras.toString());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -5273,6 +5275,8 @@ public class EmailProvider extends ContentProvider {
|
|||
final Bundle extras = new Bundle();
|
||||
extras.putLong(Mailbox.SYNC_EXTRA_MAILBOX_ID, request.mMailboxId);
|
||||
ContentResolver.requestSync(account, request.mAuthority, extras);
|
||||
LogUtils.i(TAG, "requestSync getDelayedSyncHandler %s, %s",
|
||||
account.toString(), extras.toString());
|
||||
mDelayedSyncRequests.remove(request);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -121,6 +121,8 @@ public abstract class EmailServiceStub extends IEmailService.Stub implements IEm
|
|||
extras.putInt(Mailbox.SYNC_EXTRA_DELTA_MESSAGE_COUNT, deltaMessageCount);
|
||||
}
|
||||
ContentResolver.requestSync(acct, EmailContent.AUTHORITY, extras);
|
||||
LogUtils.i(Logging.LOG_TAG, "requestSync EmailServiceStub startSync %s, %s",
|
||||
account.toString(), extras.toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -143,6 +143,8 @@ public class PopImapSyncAdapterService extends Service {
|
|||
}
|
||||
} catch (MessagingException e) {
|
||||
int cause = e.getExceptionType();
|
||||
// XXX It's no good to put the MessagingException.cause here, that's not the
|
||||
// same set of values that we use in EmailServiceStatus.
|
||||
EmailServiceStatus.syncMailboxStatus(resolver, extras, mailboxId, cause, 0);
|
||||
switch(cause) {
|
||||
case MessagingException.IOERROR:
|
||||
|
|
Loading…
Reference in New Issue