2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-28 04:48:06 +00:00

Info log connection settings

This commit is contained in:
Dan 2018-08-29 22:20:00 +02:00
parent 49f2cbe04f
commit ef9fc969d3

View File

@ -58,6 +58,10 @@ class Connection:
self.connection.close()
time.sleep(1)
else:
log.info("Connected! IPv{} - {}".format(
"6" if self.ipv6 else "4",
self.mode.__name__
))
break
else:
raise TimeoutError