From a3e46b495771bf8fe707421d1200d34cbe50a53b Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Mon, 3 May 2021 21:07:36 +0200 Subject: [PATCH] Cleanup connection info logs --- pyrogram/connection/connection.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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: