From c13f7edb65fa0810fba24b4e637944b6d4e8ebc5 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Wed, 9 Aug 2023 18:07:01 +0200 Subject: [PATCH] Even more debug --- web/client.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/web/client.ts b/web/client.ts index 24087417..d1fabbad 100644 --- a/web/client.ts +++ b/web/client.ts @@ -168,9 +168,15 @@ export class Client { await this.dispatchAppEvent("editor:init"); setInterval(() => { - this.syncService.syncFile(`${this.currentPage!}.md`).catch((e: any) => { + console.log("Syncing page", this.currentPage, "in background"); + try { + this.syncService.syncFile(`${this.currentPage!}.md`).catch((e: any) => { + console.error("Interval sync error", e); + }); + } catch (e: any) { console.error("Interval sync error", e); - }); + } + console.log("End of kick-off of background sync of", this.currentPage); }, pageSyncInterval); }