mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Logging fix
This commit is contained in:
parent
53f9232f36
commit
1e4477c148
@ -3488,8 +3488,8 @@ class AsyncTeleBot:
|
|||||||
|
|
||||||
continue
|
continue
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print('Cause exception while getting updates.')
|
logger.error('Cause exception while getting updates.')
|
||||||
logger.critical(str(e))
|
logger.error(str(e))
|
||||||
await asyncio.sleep(3)
|
await asyncio.sleep(3)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -3512,7 +3512,7 @@ class AsyncTeleBot:
|
|||||||
await self._loop_create_task(message_handler['function'](message))
|
await self._loop_create_task(message_handler['function'](message))
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(str(e))
|
logger.error(str(e))
|
||||||
|
|
||||||
# update handling
|
# update handling
|
||||||
async def process_new_updates(self, updates):
|
async def process_new_updates(self, updates):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user