From 9b801c6238b0f6e916b754afb0f789f6d0a65039 Mon Sep 17 00:00:00 2001 From: Den Rozhnovskiy Date: Tue, 14 Jan 2025 23:29:33 +0500 Subject: [PATCH] fix(middleware): fixed the logging level --- pytmbot/middleware/access_control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytmbot/middleware/access_control.py b/pytmbot/middleware/access_control.py index 28dd81b..ad7cd7c 100644 --- a/pytmbot/middleware/access_control.py +++ b/pytmbot/middleware/access_control.py @@ -132,7 +132,7 @@ def _handle_unauthorized_access(self, user_id: int, username: str, chat_id: int) } ) else: - logger.info( + logger.warning( f"Unauthorized access attempt #{current_attempt} from user {username} (ID: {user_id})", context={ **log_extra,