mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 11:36:08 +08:00
Only log sync errors if they are permanent errors
This commit is contained in:
parent
37b2323cc7
commit
099e200ec5
1 changed files with 1 additions and 2 deletions
|
@ -197,14 +197,13 @@ class SyncWorker {
|
|||
}
|
||||
|
||||
onSyncError(error) {
|
||||
this._logger.error(error, `SyncWorker: Error while syncing account`)
|
||||
this.closeConnection()
|
||||
|
||||
// Continue to retry if it was a network error
|
||||
if (error instanceof Errors.RetryableError) {
|
||||
return Promise.resolve()
|
||||
}
|
||||
|
||||
this._logger.error(error, `SyncWorker: Error while syncing account`)
|
||||
global.Metrics.reportMetric({
|
||||
name: 'sync_error',
|
||||
value: 1,
|
||||
|
|
Loading…
Reference in a new issue