mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 00:01:36 +00:00
[sans-io] less verbose read/send logging
This commit is contained in:
parent
9ea0259bb7
commit
eaa8b32dd7
@ -52,6 +52,10 @@ class SendData(ConnectionCommand):
|
||||
super().__init__(connection)
|
||||
self.data = data
|
||||
|
||||
def __repr__(self):
|
||||
target = type(self.connection).__name__.lower()
|
||||
return f"SendData({target}, {self.data})"
|
||||
|
||||
|
||||
class OpenConnection(ConnectionCommand):
|
||||
"""
|
||||
|
@ -52,6 +52,10 @@ class DataReceived(ConnectionEvent):
|
||||
super().__init__(connection)
|
||||
self.data = data
|
||||
|
||||
def __repr__(self):
|
||||
target = type(self.connection).__name__.lower()
|
||||
return f"DataReceived({target}, {self.data})"
|
||||
|
||||
|
||||
class CommandReply(Event):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user