mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-04 03:56:33 +08:00
Add metric for sync errors
This commit is contained in:
parent
0921df432b
commit
37b2323cc7
1 changed files with 5 additions and 0 deletions
|
@ -205,6 +205,11 @@ class SyncWorker {
|
|||
return Promise.resolve()
|
||||
}
|
||||
|
||||
global.Metrics.reportMetric({
|
||||
name: 'sync_error',
|
||||
value: 1,
|
||||
type: global.Metrics.Counter,
|
||||
})
|
||||
this._account.syncError = jsonError(error)
|
||||
return this._account.save()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue