From 1e4477c148e1a86f9ddee51bf6be822f87f8df50 Mon Sep 17 00:00:00 2001 From: _run Date: Sat, 20 Nov 2021 16:01:38 +0500 Subject: [PATCH] Logging fix --- telebot/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index 65906f2..68c2e48 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -3488,8 +3488,8 @@ class AsyncTeleBot: continue except Exception as e: - print('Cause exception while getting updates.') - logger.critical(str(e)) + logger.error('Cause exception while getting updates.') + logger.error(str(e)) await asyncio.sleep(3) continue @@ -3512,7 +3512,7 @@ class AsyncTeleBot: await self._loop_create_task(message_handler['function'](message)) break except Exception as e: - print(str(e)) + logger.error(str(e)) # update handling async def process_new_updates(self, updates):