From 2c0c6164ec6623c5880e4ced82b00cd589aef27b Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Mon, 28 Nov 2016 10:37:04 -0800 Subject: [PATCH] [local-sync] print sync error when in error state --- packages/local-sync/src/local-sync-worker/sync-worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/local-sync/src/local-sync-worker/sync-worker.js b/packages/local-sync/src/local-sync-worker/sync-worker.js index 558e7a27a..33a62ca28 100644 --- a/packages/local-sync/src/local-sync-worker/sync-worker.js +++ b/packages/local-sync/src/local-sync-worker/sync-worker.js @@ -151,8 +151,9 @@ class SyncWorker { this._syncTimer = null; this._account.reload().then(() => { + console.log(this._account) 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(); } this._logger.info({reason}, `SyncWorker: Account sync started`)