mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix debugger
This commit is contained in:
@@ -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<Telegraf> {
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ export default class Limiter {
|
||||
static async isLimited(updateId: number): Promise<boolean> {
|
||||
const count = await this._getCount(updateId);
|
||||
|
||||
this.debugger(`${updateId}: ${count}`)
|
||||
this.debugger(`${updateId}: ${count}`);
|
||||
|
||||
return count > this.MAX_PROCESSING_COUNT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user