Skip to content

Commit

Permalink
add console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Mar 16, 2024
1 parent e26dd26 commit c2fc494
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/realtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit c2fc494

Please sign in to comment.