mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-27 03:43:45 +03:00
Lower message severity when retrying invoke the first time
This commit is contained in:
parent
dd6802e032
commit
d0bdb7ea3f
|
@ -450,9 +450,10 @@ class TelegramBareClient:
|
||||||
if result is not None:
|
if result is not None:
|
||||||
return result
|
return result
|
||||||
|
|
||||||
__log__.warning('Invoking %s failed %d times, '
|
log = __log__.info if retry == 0 else __log__.warning
|
||||||
'reconnecting and retrying',
|
log('Invoking %s failed %d times, connecting again and retrying',
|
||||||
[str(x) for x in requests], retry + 1)
|
[str(x) for x in requests], retry + 1)
|
||||||
|
|
||||||
sleep(1)
|
sleep(1)
|
||||||
# The ReadThread has priority when attempting reconnection,
|
# The ReadThread has priority when attempting reconnection,
|
||||||
# since this thread is constantly running while __call__ is
|
# since this thread is constantly running while __call__ is
|
||||||
|
|
Loading…
Reference in New Issue
Block a user