Correct some logging in ADS

b/11436795
Some of the logging I enabled here actually causes an
exception to be thrown because the format didn't match
the args in the log command.

Change-Id: If86942e64927c0e8df7573ef099824899e20c289
This commit is contained in:
Martin Hibdon 2013-11-06 15:39:04 -08:00
parent 06e140e4a4
commit 1ad443612d

View File

@ -713,9 +713,9 @@ public class AttachmentDownloadService extends Service implements Runnable {
default: code = Integer.toString(statusCode); break; default: code = Integer.toString(statusCode); break;
} }
if (statusCode != EmailServiceStatus.IN_PROGRESS) { if (statusCode != EmailServiceStatus.IN_PROGRESS) {
LogUtils.d(TAG, ">> Attachment " + attachmentId + ": " + code); LogUtils.d(TAG, ">> Attachment status " + attachmentId + ": " + code);
} else if (progress >= (req.lastProgress + 10)) { } else if (progress >= (req.lastProgress + 10)) {
LogUtils.d(TAG, ">> Attachment " + attachmentId + ": " + progress + "%"); LogUtils.d(TAG, ">> Attachment progress %d: %d%%", attachmentId, progress);
} }
} }
req.lastStatusCode = statusCode; req.lastStatusCode = statusCode;