From 451d069e7f293fdfdff913ded034238bb2a39b77 Mon Sep 17 00:00:00 2001 From: ihatemyself0 <173957402+ihatemyself0@users.noreply.github.com> Date: Mon, 8 Jul 2024 00:45:27 +0300 Subject: [PATCH] fix handlers logger --- tgram/tgbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgram/tgbot.py b/tgram/tgbot.py index e09acab..b844496 100644 --- a/tgram/tgbot.py +++ b/tgram/tgbot.py @@ -154,7 +154,7 @@ def add_handler(self, handler: "tgram.handlers.Handler") -> None: logger.info( "(%s) added to %s handlers", handler.callback.__name__, - "Update." + handler.type if handler.type != "all" else "all", + ("Update." + handler.type if handler.type != "all") else "all", ) self._handlers.append(handler)