mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-12-03 12:23:46 +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)
|
super().__init__(connection)
|
||||||
self.data = data
|
self.data = data
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
target = type(self.connection).__name__.lower()
|
||||||
|
return f"SendData({target}, {self.data})"
|
||||||
|
|
||||||
|
|
||||||
class OpenConnection(ConnectionCommand):
|
class OpenConnection(ConnectionCommand):
|
||||||
"""
|
"""
|
||||||
|
@ -52,6 +52,10 @@ class DataReceived(ConnectionEvent):
|
|||||||
super().__init__(connection)
|
super().__init__(connection)
|
||||||
self.data = data
|
self.data = data
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
target = type(self.connection).__name__.lower()
|
||||||
|
return f"DataReceived({target}, {self.data})"
|
||||||
|
|
||||||
|
|
||||||
class CommandReply(Event):
|
class CommandReply(Event):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user