mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix logging middleware. dispatcher removed from args
This commit is contained in:
parent
7fe12ba3d2
commit
5aff7f7d35
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ class LoggingMiddleware(BaseMiddleware):
|
|||
f"pre-checkout query [ID:{pre_checkout_query.id}] "
|
||||
f"from user [ID:{pre_checkout_query.from_user.id}]")
|
||||
|
||||
async def on_pre_process_error(self, dispatcher, update, error, data: dict):
|
||||
async def on_pre_process_error(self, update, error, data: dict):
|
||||
timeout = self.check_timeout(update)
|
||||
if timeout > 0:
|
||||
self.logger.info(f"Process update [ID:{update.update_id}]: [failed] (in {timeout} ms)")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue