Readded sync logs in JSONPayloadBuilder

pull/14/head
Sam Bosley 12 years ago
parent 2fcad7c3e3
commit 7d78af4ff0

@ -502,7 +502,7 @@ public class ActFmSyncThread {
return true;
}
private void syncLog(String message) {
public static void syncLog(String message) {
if (ActFmInvoker.SYNC_DEBUG)
Log.e(ERROR_TAG, message);
}

@ -3,6 +3,8 @@ package com.todoroo.astrid.actfm.sync.messages;
import org.apache.http.entity.mime.MultipartEntity;
import org.json.JSONObject;
import com.todoroo.astrid.actfm.sync.ActFmSyncThread;
public class JSONPayloadBuilder {
private final StringBuilder sb = new StringBuilder("["); //$NON-NLS-1$
@ -25,6 +27,7 @@ public class JSONPayloadBuilder {
if (obj != null) {
temp.append(obj)
.append(","); //$NON-NLS-1$
ActFmSyncThread.syncLog(temp.toString());
sb.append(temp);

Loading…
Cancel
Save