From aeaa838b19b94f9f4e6627c67cae272521500318 Mon Sep 17 00:00:00 2001 From: stringsplit <77242831+nbitzz@users.noreply.github.com> Date: Wed, 28 Jun 2023 22:15:18 -0700 Subject: [PATCH] debugging --- src/server/lib/files.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server/lib/files.ts b/src/server/lib/files.ts index 66063e3..5f03d78 100644 --- a/src/server/lib/files.ts +++ b/src/server/lib/files.ts @@ -347,7 +347,9 @@ export default class Files { let dataStream = new Readable({ read(){ + console.log(`Getting chunk ${position+1}/${attachments.length}`) getNextChunk().then(async (nextChunk) => { + console.log(`Got chunk ${position+1}/${attachments.length}. It is ${nextChunk ? "not " : ""} null.`) if (nextChunk == "__ERR") {this.destroy(new Error("file read error")); return} let response = this.push(nextChunk)