diff --git a/pyrogram/connection/connection.py b/pyrogram/connection/connection.py index d3bf6b28..3ab52d71 100644 --- a/pyrogram/connection/connection.py +++ b/pyrogram/connection/connection.py @@ -18,7 +18,6 @@ import asyncio import logging - from typing import Optional from .transport import * @@ -61,13 +60,12 @@ class Connection: self.protocol.close() await asyncio.sleep(1) else: - log.info("Connected! {} DC{} - IPv{} - {}{} {}".format( + log.info("Connected! {} DC{}{} - IPv{} - {}".format( "Test" if self.test_mode else "Production", self.dc_id, + " (media)" if self.media else "", "6" if self.ipv6 else "4", self.mode.__name__, - " (media)" if self.media else "", - self.address )) break else: