Updated crittercism library and readded the calls to logHandledException

pull/14/head
Sam Bosley 13 years ago
parent 76c0d13be1
commit 8df2ebea24

@ -29,6 +29,6 @@
<classpathentry exported="true" kind="lib" path="libs/google-oauth-client-1.6.0-beta.jar"/>
<classpathentry exported="true" kind="lib" path="libs/google-oauth-client-extensions-1.6.0-beta.jar"/>
<classpathentry exported="true" kind="lib" path="libs/gson-1.7.1.jar"/>
<classpathentry kind="lib" path="libs/crittercism_v2_1_1.jar"/>
<classpathentry kind="lib" path="libs/crittercism_v2_1_2.jar"/>
<classpathentry kind="output" path="bin/classes"/>
</classpath>

@ -28,6 +28,7 @@ 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;
@ -427,12 +428,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);
else
Crittercism.logHandledException(e);
handleException("task-save-io", e);
task.setValue(Task.LAST_SYNC, DateUtilities.now() + 1000L);
}
@ -1093,10 +1094,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,6 +11,7 @@ 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;
@ -132,10 +133,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,6 +7,7 @@ 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;
@ -88,7 +89,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,6 +11,7 @@ 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;
@ -112,7 +113,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();
@ -154,7 +155,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