[client-sync] Don't report stuck sync processes to Sentry

Summary: Just to mixpanel. Addresses T8095

Test Plan: Meh

Reviewers: mark, spang, juan

Reviewed By: juan

Differential Revision: https://phab.nylas.com/D4403
This commit is contained in:
Halla Moore 2017-04-10 17:50:20 -07:00
parent f6f8f16e25
commit f82c72aa88

View file

@ -95,12 +95,6 @@ class SyncProcessManager {
const {time, activity} = SyncActivity.getLastSyncActivityForAccount(accountId);
if (time < Date.now() - this.MAX_WORKER_SILENCE_MS) {
const duration = Date.now() - time;
NylasEnv.reportError(new Error("SyncProcessManager: Detected stuck sync process"), {
rateLimit: {
ratePerHour: 30,
key: `SyncProcessManager:StuckProcess`,
},
})
Actions.recordUserEvent('Stuck Sync Process', {
accountId: accountId,
lastActivityTime: time,