From 85bca9bc927374e02c125cfeb8ccd37da88ab8cb Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Sat, 1 Aug 2020 15:26:01 +0300 Subject: [PATCH] Remove some of the non-fruitful debug attempts --- backend/src/index.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/backend/src/index.ts b/backend/src/index.ts index 0b06eb1a..6057d587 100644 --- a/backend/src/index.ts +++ b/backend/src/index.ts @@ -132,8 +132,6 @@ connect().then(async () => { client.on("debug", message => { if (message.includes(" 429 ")) { logger.info(`[429] ${message}`); - } else if (!message.includes(" Reset ") && !message.includes('"token"') && !message.includes('"op":1')) { - logger.info(`[ERIS DEBUG] ${message}`); } }); @@ -208,20 +206,6 @@ connect().then(async () => { client.once("ready", () => { startUptimeCounter(); - - // tslint:disable:no-console - setInterval(() => { - const shards = Array.from(client.shards.values()); - console.log("Shards:", shards.length); - for (const shard of shards) { - console.log(`=== SHARD #${shard.id} ===`); - console.log("lastHeartbeatSent", shard.lastHeartbeatSent); - console.log("lastHeartbeatReceived", shard.lastHeartbeatReceived); - console.log("latency", shard.latency); - console.log("diff", shard.lastHeartbeatReceived - shard.lastHeartbeatSent); - } - }, 1 * MINUTES); - // tslint:enable:no-console }); logger.info("Starting the bot");