From ac53b9099b5776d63f0630cf765aeb48288394f0 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sat, 12 Oct 2019 22:18:19 +0200 Subject: [PATCH] only log error in sync loop --- src/matrix/sync.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/matrix/sync.js b/src/matrix/sync.js index 623684de..beac1799 100644 --- a/src/matrix/sync.js +++ b/src/matrix/sync.js @@ -58,7 +58,8 @@ export default class Sync extends EventEmitter { } catch (err) { this._isSyncing = false; if (!(err instanceof RequestAbortError)) { - console.error("stopping sync because of error", err.stack); + console.error("stopping sync because of error"); + console.error(err); this.emit("status", "error", err); } } @@ -112,7 +113,7 @@ export default class Sync extends EventEmitter { await syncTxn.complete(); console.info("syncTxn committed!!"); } catch (err) { - console.error("unable to commit sync tranaction", err.message); + console.error("unable to commit sync tranaction"); throw err; } // emit room related events after txn has been closed