mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Info log DC number on connection
This commit is contained in:
parent
ea39062d2d
commit
05b3be1e88
@ -38,6 +38,7 @@ class Connection:
|
||||
}
|
||||
|
||||
def __init__(self, dc_id: int, test_mode: bool, ipv6: bool, proxy: dict, mode: int = 1):
|
||||
self.dc_id = dc_id
|
||||
self.ipv6 = ipv6
|
||||
self.proxy = proxy
|
||||
self.address = DataCenter(dc_id, test_mode, ipv6)
|
||||
@ -58,7 +59,8 @@ class Connection:
|
||||
self.connection.close()
|
||||
time.sleep(1)
|
||||
else:
|
||||
log.info("Connected! IPv{} - {}".format(
|
||||
log.info("Connected! DC{} - IPv{} - {}".format(
|
||||
self.dc_id,
|
||||
"6" if self.ipv6 else "4",
|
||||
self.mode.__name__
|
||||
))
|
||||
|
Loading…
x
Reference in New Issue
Block a user