Even more debug

pull/503/head
Zef Hemel 2023-08-09 18:07:01 +02:00
parent 647f23634d
commit c13f7edb65
1 changed files with 8 additions and 2 deletions

View File

@ -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);
}