mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-21 20:15:52 +08:00
[local-sync]: Properly remove all refs to global.Metrics
This commit is contained in:
parent
654260b1a5
commit
53a1f6e824
2 changed files with 0 additions and 10 deletions
|
@ -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,
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue