mirror of
https://github.com/pyrogram/pyrogram
synced 2025-09-01 23:05:15 +00:00
More useful logging
This commit is contained in:
@@ -400,7 +400,7 @@ class Session:
|
|||||||
try:
|
try:
|
||||||
return self._send(data)
|
return self._send(data)
|
||||||
except (OSError, TimeoutError):
|
except (OSError, TimeoutError):
|
||||||
log.warning("Retrying {}".format(type(data)))
|
(log.warning if i > 0 else log.info)("{}: {} Retrying {}".format(i, datetime.now(), type(data)))
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
Reference in New Issue
Block a user