Don't log handled exceptions--crittercism crashes

pull/14/head
Sam Bosley 12 years ago
parent 3a209843aa
commit 260d5b7f26

@ -28,7 +28,6 @@ import android.text.TextUtils;
import android.util.Log;
import android.widget.Toast;
import com.crittercism.app.Crittercism;
import com.timsu.astrid.R;
import com.todoroo.andlib.data.AbstractModel;
import com.todoroo.andlib.data.DatabaseDao;
@ -428,12 +427,12 @@ public final class ActFmSyncService {
JsonHelper.taskFromJson(result, task, metadata);
} catch (JSONException e) {
handleException("task-save-json", e);
Crittercism.logHandledException(e);
// Crittercism.logHandledException(e);
} catch (IOException e) {
if (notPermanentError(e))
addFailedPush(new FailedPush(PUSH_TYPE_TASK, task.getId()));
else
Crittercism.logHandledException(e);
// Crittercism.logHandledException(e);
handleException("task-save-io", e);
task.setValue(Task.LAST_SYNC, DateUtilities.now() + 1000L);
}
@ -1094,10 +1093,10 @@ public final class ActFmSyncService {
handler.handleException("io-exception-list-" + model, e);
else
handleException("io-exception-list-" + model, e);
Crittercism.logHandledException(e);
// Crittercism.logHandledException(e);
} catch (JSONException e) {
handleException("json: " + result.toString(), e);
Crittercism.logHandledException(e);
// Crittercism.logHandledException(e);
}
}
}).start();

@ -11,7 +11,6 @@ import java.util.concurrent.atomic.AtomicInteger;
import org.json.JSONException;
import com.crittercism.app.Crittercism;
import com.timsu.astrid.C2DMReceiver;
import com.timsu.astrid.R;
import com.todoroo.andlib.data.TodorooCursor;
@ -133,10 +132,10 @@ public class ActFmSyncV2Provider extends SyncV2Provider {
Preferences.setInt(LAST_TAG_FETCH_TIME, time);
} catch (JSONException e) {
handler.handleException("actfm-sync", e); //$NON-NLS-1$
Crittercism.logHandledException(e);
// Crittercism.logHandledException(e);
} catch (IOException e) {
handler.handleException("actfm-sync", e); //$NON-NLS-1$
Crittercism.logHandledException(e);
// Crittercism.logHandledException(e);
} finally {
callback.incrementProgress(20);
if(finisher.decrementAndGet() == 0) {

@ -7,7 +7,6 @@ import android.content.ContentValues;
import android.text.TextUtils;
import android.util.Log;
import com.crittercism.app.Crittercism;
import com.todoroo.andlib.data.DatabaseDao.ModelUpdateListener;
import com.todoroo.andlib.data.Property;
import com.todoroo.andlib.service.Autowired;
@ -89,7 +88,7 @@ public final class GtasksSyncService {
}
}
} catch (IOException e) {
Crittercism.logHandledException(e);
// Crittercism.logHandledException(e);
Log.w("gtasks-sync-error", "Sync on save failed", e);
}
}

@ -11,7 +11,6 @@ import org.json.JSONException;
import android.text.TextUtils;
import com.crittercism.app.Crittercism;
import com.google.api.services.tasks.model.Tasks;
import com.timsu.astrid.R;
import com.todoroo.andlib.data.AbstractModel;
@ -113,7 +112,7 @@ public class GtasksSyncV2Provider extends SyncV2Provider {
gtasksListService.updateLists(invoker.allGtaskLists());
} catch (IOException e) {
handler.handleException("gtasks-sync=io", e); //$NON-NLS-1$
Crittercism.logHandledException(e);
// Crittercism.logHandledException(e);
}
StoreObject[] lists = gtasksListService.getLists();
@ -155,7 +154,7 @@ public class GtasksSyncV2Provider extends SyncV2Provider {
gtasksSyncService.pushTaskOnSave(task, task.getMergedValues(), invoker, false);
} catch (IOException e) {
handler.handleException("gtasks-sync-io", e); //$NON-NLS-1$
Crittercism.logHandledException(e);
// Crittercism.logHandledException(e);
} finally {
callback.incrementProgress(10);
}

Loading…
Cancel
Save