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