Log some ignored errors

pull/14/head
Sam Bosley 12 years ago
parent 65f74e7456
commit e479f7a3ff

@ -6,12 +6,16 @@ import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
import org.json.JSONObject; import org.json.JSONObject;
import android.util.Log;
import com.todoroo.andlib.data.AbstractModel; import com.todoroo.andlib.data.AbstractModel;
import com.todoroo.astrid.core.PluginServices; import com.todoroo.astrid.core.PluginServices;
import com.todoroo.astrid.dao.OutstandingEntryDao; import com.todoroo.astrid.dao.OutstandingEntryDao;
public class AcknowledgeChange extends ServerToClientMessage { public class AcknowledgeChange extends ServerToClientMessage {
private static final String ERROR_TAG = "actfm-acknowledge-change"; //$NON-NLS-1$
private final OutstandingEntryDao<?> dao; private final OutstandingEntryDao<?> dao;
public AcknowledgeChange(JSONObject json) { public AcknowledgeChange(JSONObject json) {
@ -38,7 +42,7 @@ public class AcknowledgeChange extends ServerToClientMessage {
idsList.add(id); idsList.add(id);
} catch (JSONException e) { } 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()]))); dao.deleteWhere(AbstractModel.ID_PROPERTY.in(idsList.toArray(new Long[idsList.size()])));

@ -23,6 +23,8 @@ import com.todoroo.astrid.data.RemoteModel;
@SuppressWarnings("nls") @SuppressWarnings("nls")
public class ChangesHappened<TYPE extends RemoteModel, OE extends OutstandingEntry<TYPE>> extends ClientToServerMessage<TYPE> { public class ChangesHappened<TYPE extends RemoteModel, OE extends OutstandingEntry<TYPE>> extends ClientToServerMessage<TYPE> {
private static final String ERROR_TAG = "actfm-changes-happened";
private final Class<OE> outstandingClass; private final Class<OE> outstandingClass;
private final List<OE> changes; private final List<OE> changes;
@ -80,7 +82,7 @@ public class ChangesHappened<TYPE extends RemoteModel, OE extends OutstandingEnt
array.put(changeJson); array.put(changeJson);
} catch (JSONException e) { } catch (JSONException e) {
// Log.e(ERROR_TAG, "Error writing change to JSON", e);
} }
} }
return array; return array;

Loading…
Cancel
Save