mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Remove info logs from protocol impls
This commit is contained in:
parent
ef9fc969d3
commit
43483a1ccd
@ -31,8 +31,6 @@ class TCPAbridged(TCP):
|
||||
super().connect(address)
|
||||
super().sendall(b"\xef")
|
||||
|
||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
||||
|
||||
def sendall(self, data: bytes, *args):
|
||||
length = len(data) // 4
|
||||
|
||||
|
@ -55,8 +55,6 @@ class TCPAbridgedO(TCP):
|
||||
|
||||
super().sendall(nonce)
|
||||
|
||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
||||
|
||||
def sendall(self, data: bytes, *args):
|
||||
length = len(data) // 4
|
||||
|
||||
|
@ -34,7 +34,6 @@ class TCPFull(TCP):
|
||||
def connect(self, address: tuple):
|
||||
super().connect(address)
|
||||
self.seq_no = 0
|
||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
||||
|
||||
def sendall(self, data: bytes, *args):
|
||||
# 12 = packet_length (4), seq_no (4), crc32 (4) (at the end)
|
||||
|
@ -32,8 +32,6 @@ class TCPIntermediate(TCP):
|
||||
super().connect(address)
|
||||
super().sendall(b"\xee" * 4)
|
||||
|
||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
||||
|
||||
def sendall(self, data: bytes, *args):
|
||||
super().sendall(pack("<i", len(data)) + data)
|
||||
|
||||
|
@ -56,8 +56,6 @@ class TCPIntermediateO(TCP):
|
||||
|
||||
super().sendall(nonce)
|
||||
|
||||
log.info("Connected{}!".format(" with proxy" if self.proxy_enabled else ""))
|
||||
|
||||
def sendall(self, data: bytes, *args):
|
||||
super().sendall(
|
||||
AES.ctr256_encrypt(
|
||||
|
Loading…
x
Reference in New Issue
Block a user