From e479f7a3ff1d11c7125f89914c218d245509bb0b Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Thu, 15 Nov 2012 15:13:57 -0800 Subject: [PATCH] Log some ignored errors --- .../astrid/actfm/sync/messages/AcknowledgeChange.java | 6 +++++- .../todoroo/astrid/actfm/sync/messages/ChangesHappened.java | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/AcknowledgeChange.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/AcknowledgeChange.java index ac3362289..4920680bf 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/AcknowledgeChange.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/AcknowledgeChange.java @@ -6,12 +6,16 @@ import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; +import android.util.Log; + import com.todoroo.andlib.data.AbstractModel; import com.todoroo.astrid.core.PluginServices; import com.todoroo.astrid.dao.OutstandingEntryDao; public class AcknowledgeChange extends ServerToClientMessage { + private static final String ERROR_TAG = "actfm-acknowledge-change"; //$NON-NLS-1$ + private final OutstandingEntryDao dao; public AcknowledgeChange(JSONObject json) { @@ -38,7 +42,7 @@ public class AcknowledgeChange extends ServerToClientMessage { idsList.add(id); } catch (JSONException e) { - // + Log.e(ERROR_TAG, "Error getting long from " + idsArray + " at index " + i, e); //$NON-NLS-1$//$NON-NLS-2$ } } dao.deleteWhere(AbstractModel.ID_PROPERTY.in(idsList.toArray(new Long[idsList.size()]))); diff --git a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java index 9aee80d17..46bfbde39 100644 --- a/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java +++ b/astrid/plugin-src/com/todoroo/astrid/actfm/sync/messages/ChangesHappened.java @@ -23,6 +23,8 @@ import com.todoroo.astrid.data.RemoteModel; @SuppressWarnings("nls") public class ChangesHappened> extends ClientToServerMessage { + private static final String ERROR_TAG = "actfm-changes-happened"; + private final Class outstandingClass; private final List changes; @@ -80,7 +82,7 @@ public class ChangesHappened