From 600d4640feb9e94e249e47a2c89f2392e72f0202 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Mon, 14 Mar 2022 20:27:23 +0300 Subject: [PATCH] Add debug logs --- src/bots/manager/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bots/manager/index.ts b/src/bots/manager/index.ts index 1ec9b18..51c66dd 100644 --- a/src/bots/manager/index.ts +++ b/src/bots/manager/index.ts @@ -93,8 +93,6 @@ export default class BotsManager { const webhookInfo = await bot.telegram.getWebhookInfo(); const previousPendingUpdateCount = this.botsPendingUpdatesCount[state.id] || 0; - console.log(state.id, previousPendingUpdateCount, webhookInfo.pending_update_count); - if (previousPendingUpdateCount !== 0 && webhookInfo.pending_update_count !== 0) { this._setWebhook(bot, state); } @@ -121,7 +119,9 @@ export default class BotsManager { } ); return true; - } catch (e) {} + } catch (e) { + console.log(e); + } } return false; }