2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Remove info logs from protocol impls

This commit is contained in:
Dan 2018-08-29 22:20:32 +02:00
parent ef9fc969d3
commit 43483a1ccd
5 changed files with 0 additions and 9 deletions

View File

@ -31,8 +31,6 @@ class TCPAbridged(TCP):
super().connect(address) super().connect(address)
super().sendall(b"\xef") super().sendall(b"\xef")
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
def sendall(self, data: bytes, *args): def sendall(self, data: bytes, *args):
length = len(data) // 4 length = len(data) // 4

View File

@ -55,8 +55,6 @@ class TCPAbridgedO(TCP):
super().sendall(nonce) super().sendall(nonce)
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
def sendall(self, data: bytes, *args): def sendall(self, data: bytes, *args):
length = len(data) // 4 length = len(data) // 4

View File

@ -34,7 +34,6 @@ class TCPFull(TCP):
def connect(self, address: tuple): def connect(self, address: tuple):
super().connect(address) super().connect(address)
self.seq_no = 0 self.seq_no = 0
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
def sendall(self, data: bytes, *args): def sendall(self, data: bytes, *args):
# 12 = packet_length (4), seq_no (4), crc32 (4) (at the end) # 12 = packet_length (4), seq_no (4), crc32 (4) (at the end)

View File

@ -32,8 +32,6 @@ class TCPIntermediate(TCP):
super().connect(address) super().connect(address)
super().sendall(b"\xee" * 4) super().sendall(b"\xee" * 4)
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
def sendall(self, data: bytes, *args): def sendall(self, data: bytes, *args):
super().sendall(pack("<i", len(data)) + data) super().sendall(pack("<i", len(data)) + data)

View File

@ -56,8 +56,6 @@ class TCPIntermediateO(TCP):
super().sendall(nonce) super().sendall(nonce)
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
def sendall(self, data: bytes, *args): def sendall(self, data: bytes, *args):
super().sendall( super().sendall(
AES.ctr256_encrypt( AES.ctr256_encrypt(