From 33a5c17e08882bc0765a01bbd90bbf6d5f788b9a Mon Sep 17 00:00:00 2001 From: Kostiantyn Kriuchkov <36363097+Latand@users.noreply.github.com> Date: Tue, 11 May 2021 18:51:07 +0300 Subject: [PATCH] Update error_handler.py --- handlers/errors/error_handler.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/handlers/errors/error_handler.py b/handlers/errors/error_handler.py index b89182b..4409637 100644 --- a/handlers/errors/error_handler.py +++ b/handlers/errors/error_handler.py @@ -19,26 +19,26 @@ async def errors_handler(update, exception): """ if isinstance(exception, CantDemoteChatCreator): - logging.debug("Can't demote chat creator") + logging.exception("Can't demote chat creator") return True if isinstance(exception, MessageNotModified): - logging.debug('Message is not modified') + logging.exception('Message is not modified') return True if isinstance(exception, MessageCantBeDeleted): - logging.debug('Message cant be deleted') + logging.exception('Message cant be deleted') return True if isinstance(exception, MessageToDeleteNotFound): - logging.debug('Message to delete not found') + logging.exception('Message to delete not found') return True if isinstance(exception, MessageTextIsEmpty): - logging.debug('MessageTextIsEmpty') + logging.exception('MessageTextIsEmpty') return True if isinstance(exception, Unauthorized): - logging.info(f'Unauthorized: {exception}') + logging.exception(f'Unauthorized: {exception}') return True if isinstance(exception, InvalidQueryID):