mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-08 21:55:54 +08:00
[local-sync] print sync error when in error state
This commit is contained in:
parent
64cb03f4cd
commit
2c0c6164ec
1 changed files with 2 additions and 1 deletions
|
@ -151,8 +151,9 @@ class SyncWorker {
|
||||||
this._syncTimer = null;
|
this._syncTimer = null;
|
||||||
|
|
||||||
this._account.reload().then(() => {
|
this._account.reload().then(() => {
|
||||||
|
console.log(this._account)
|
||||||
if (!process.env.SYNC_AFTER_ERRORS && this._account.errored()) {
|
if (!process.env.SYNC_AFTER_ERRORS && this._account.errored()) {
|
||||||
this._logger.info(`SyncWorker: Account is in error state - Skipping sync`)
|
this._logger.error(`SyncWorker: Account is in error state - Skipping sync\n${this._account.syncError.message}`, this._account.syncError.stack.join('\n'))
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
}
|
}
|
||||||
this._logger.info({reason}, `SyncWorker: Account sync started`)
|
this._logger.info({reason}, `SyncWorker: Account sync started`)
|
||||||
|
|
Loading…
Add table
Reference in a new issue