From 6a94ec9b3e331a6789039cad292c7a829a6a594d Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 19 Aug 2021 01:04:41 +0300 Subject: [PATCH] +++debug --- backend/src/utils/hotfixMessageFetch.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/src/utils/hotfixMessageFetch.ts b/backend/src/utils/hotfixMessageFetch.ts index 5afea774..658c5aaf 100644 --- a/backend/src/utils/hotfixMessageFetch.ts +++ b/backend/src/utils/hotfixMessageFetch.ts @@ -9,11 +9,13 @@ export function hotfixMessageFetch(channel: TextChannel | ThreadChannel, message const thisN = ++n; // tslint:disable-next-line:no-console - console.log(`[${thisN}] Queueing to fetch message id ${messageId} from channel ${channel.id}`); + console.trace( + `[${thisN}] Queueing to fetch message id ${messageId} from channel ${channel.id} (queue size: ${queue.length})`, + ); return queue.add(async () => { await sleep(3000); // tslint:disable-next-line:no-console - console.trace(`[${thisN}] Fetching message id ${messageId} from channel ${channel.id}`); + console.log(`[${thisN}] Fetching message id ${messageId} from channel ${channel.id}`); return channel.messages.fetch(messageId); }); }