[local-sync]: Properly remove all refs to global.Metrics

This commit is contained in:
Juan Tejada 2016-11-23 11:01:48 -08:00
parent 654260b1a5
commit 53a1f6e824
2 changed files with 0 additions and 10 deletions

View file

@ -70,11 +70,6 @@ class SyncProcessManager {
this._logger.info({
accounts_syncing_count: accountsSyncing,
}, "ProcessManager: 💘")
global.Metrics.reportMetric({
name: 'accounts_syncing_count',
value: accountsSyncing,
type: global.Metrics.MetricTypes.Gauge,
})
})
}

View file

@ -204,11 +204,6 @@ class SyncWorker {
this.closeConnection()
this._logger.error(error, `SyncWorker: Error while syncing account`)
global.Metrics.reportMetric({
name: 'sync_error',
value: 1,
type: global.Metrics.Counter,
})
// Continue to retry if it was a network error
if (error instanceof IMAPErrors.RetryableError) {