Skip to content

Commit 243ca85

Browse files
committed
refactor(middleware): Remove logger import and instantiation, and console log statement in ActionFilter class.
1 parent 1296a4d commit 243ca85

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

src/middleware/ActionFilter.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import { Logger } from "../config/logger";
21
import { SafeExecution } from "../decorators/SafeExecution";
32
import { Middleware } from "./mid";
4-
const logger = new Logger({
5-
file: "ActionFilter.log",
6-
level: "info",
7-
timestampFormat: "locale",
8-
});
93
export class ActionFilter extends Middleware {
104
@SafeExecution()
115
/**
@@ -90,8 +84,6 @@ export class ActionFilter extends Middleware {
9084
}
9185
isValidChatType() {
9286
const chat = this.ctx.chat;
93-
console.log("chat:", chat);
94-
9587
if (chat) {
9688
if (chat.type === "supergroup" || chat.type === "channel") {
9789
return this.nxt();

0 commit comments

Comments
 (0)