Cleanup connection info logs

This commit is contained in:
Dan 2021-05-03 21:07:36 +02:00
parent 826f815ca3
commit a3e46b4957

View File

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