From 3e222d9dbd3f7dbe651fbda09c8952e1df5dd3a9 Mon Sep 17 00:00:00 2001 From: Yuzu Date: Sun, 18 Aug 2024 15:06:45 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Console=20spam=20on=20pro?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/SeekableStream.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/SeekableStream.ts b/src/utils/SeekableStream.ts index 6e9422c..c741ba0 100644 --- a/src/utils/SeekableStream.ts +++ b/src/utils/SeekableStream.ts @@ -386,6 +386,7 @@ export class SeekableStream { } private debugLog() { + if (process.env.NODE_ENV === "production") return; // console.debug("Tick"); const isBufferSufficient = this.stream.readableLength >= this.bytesPerRequestLimit;