From fa5eae70dd41a04cc81c6830bde2a60b7ee1a7a0 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Thu, 17 Feb 2022 14:07:21 -0800 Subject: [PATCH] Log complete sync errors --- src/sync.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync.ts b/src/sync.ts index 2a0030bff..3d58188d9 100644 --- a/src/sync.ts +++ b/src/sync.ts @@ -821,7 +821,7 @@ export class SyncApi { } catch (e) { // log the exception with stack if we have it, else fall back // to the plain description - logger.error("Caught /sync error", e.stack || e); + logger.error(e); // Emit the exception for client handling this.client.emit("sync.unexpectedError", e);