From c2fc4944bba6ffc2bb2db57a343cb0f0776a882f Mon Sep 17 00:00:00 2001 From: gimenes Date: Sat, 16 Mar 2024 17:32:48 -0300 Subject: [PATCH] add console.log --- src/realtime.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/realtime.ts b/src/realtime.ts index 0f74213..fe1d061 100644 --- a/src/realtime.ts +++ b/src/realtime.ts @@ -237,6 +237,11 @@ export class Realtime implements DurableObject { for (const key of await this.fs.readdir(path)) { const withContent = contentFilter !== false && key.startsWith(contentFilter); + + console.log( + JSON.stringify({ path, file: await this.fs.readFile(key) }), + ); + fs[key] = { content: withContent ? await this.fs.readFile(key) : null, };