mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Info log connection settings
This commit is contained in:
parent
49f2cbe04f
commit
ef9fc969d3
@ -58,6 +58,10 @@ class Connection:
|
|||||||
self.connection.close()
|
self.connection.close()
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
else:
|
else:
|
||||||
|
log.info("Connected! IPv{} - {}".format(
|
||||||
|
"6" if self.ipv6 else "4",
|
||||||
|
self.mode.__name__
|
||||||
|
))
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
raise TimeoutError
|
raise TimeoutError
|
||||||
|
Loading…
x
Reference in New Issue
Block a user