diff --git a/src/bots/factory/bots/approved/index.ts b/src/bots/factory/bots/approved/index.ts index 9d682fa..eb0040e 100644 --- a/src/bots/factory/bots/approved/index.ts +++ b/src/bots/factory/bots/approved/index.ts @@ -25,7 +25,7 @@ import { getAnnotationHandler } from './annotations'; import Sentry from '@/sentry'; -const botDebugger = debug("approvedBot"); +const log = debug("approvedBot"); export async function createApprovedBot(token: string, state: BotState): Promise { @@ -460,7 +460,7 @@ export async function createApprovedBot(token: string, state: BotState): Promise }); bot.catch((err, ctx: Context) => { - botDebugger.log({err, ctx}); + log({err, ctx}); Sentry.captureException(err); }); diff --git a/src/bots/limiter/index.ts b/src/bots/limiter/index.ts index 2887953..f96a498 100644 --- a/src/bots/limiter/index.ts +++ b/src/bots/limiter/index.ts @@ -44,7 +44,7 @@ export default class Limiter { static async isLimited(updateId: number): Promise { const count = await this._getCount(updateId); - this.debugger(`${updateId}: ${count}`) + this.debugger(`${updateId}: ${count}`); return count > this.MAX_PROCESSING_COUNT; }