From 1dd462fcf3572ff56af3c2d694f8cbfe576f6c76 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Tue, 9 Jul 2019 12:38:54 +0300 Subject: [PATCH] added `user` --- aiogram/contrib/middlewares/logging.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiogram/contrib/middlewares/logging.py b/aiogram/contrib/middlewares/logging.py index c5d61aac..9f389b60 100644 --- a/aiogram/contrib/middlewares/logging.py +++ b/aiogram/contrib/middlewares/logging.py @@ -95,7 +95,7 @@ class LoggingMiddleware(BaseMiddleware): f"in chat [{callback_query.message.chat.type}:{callback_query.message.chat.id}]") if callback_query.message.from_user: - text += f" originally posted by [{callback_query.message.from_user.id}]" + text += f" originally posted by user [ID:{callback_query.message.from_user.id}]" self.logger.info(text) @@ -113,7 +113,7 @@ class LoggingMiddleware(BaseMiddleware): f"in chat [{callback_query.message.chat.type}:{callback_query.message.chat.id}]") if callback_query.message.from_user: - text += f" originally posted by [{callback_query.message.from_user.id}]" + text += f" originally posted by user [ID:{callback_query.message.from_user.id}]" self.logger.info(text)