am f671401a
: Merge change 25610 into eclair
Merge commit 'f671401a3abb852862d6f49a279974a78bc0d1b4' into eclair-plus-aosp * commit 'f671401a3abb852862d6f49a279974a78bc0d1b4': Add logging to EasOutboxService to help find sending issues
This commit is contained in:
commit
77c7e549d5
@ -129,6 +129,7 @@ public class EasOutboxService extends EasSyncService {
|
||||
cmd += "&ItemId=" + URLEncoder.encode(itemId, "UTF-8") + "&CollectionId="
|
||||
+ URLEncoder.encode(collectionId, "UTF-8") + "&SaveInSent=T";
|
||||
}
|
||||
userLog("Send cmd: " + cmd);
|
||||
HttpResponse resp = sendHttpClientPost(cmd, inputEntity);
|
||||
|
||||
inputStream.close();
|
||||
@ -140,6 +141,7 @@ public class EasOutboxService extends EasSyncService {
|
||||
result = EmailServiceStatus.SUCCESS;
|
||||
sendCallback(-1, subject, EmailServiceStatus.SUCCESS);
|
||||
} else {
|
||||
userLog("Message sending failed, code: " + code);
|
||||
ContentValues cv = new ContentValues();
|
||||
cv.put(SyncColumns.SERVER_ID, SEND_FAILED);
|
||||
Message.update(mContext, Message.CONTENT_URI, msgId, cv);
|
||||
@ -196,6 +198,7 @@ public class EasOutboxService extends EasSyncService {
|
||||
} catch (IOException e) {
|
||||
mExitStatus = EXIT_IO_ERROR;
|
||||
} catch (Exception e) {
|
||||
userLog("Exception caught in EasOutboxService", e);
|
||||
mExitStatus = EXIT_EXCEPTION;
|
||||
} finally {
|
||||
userLog(mMailbox.mDisplayName, ": sync finished");
|
||||
|
Loading…
Reference in New Issue
Block a user