[sans-io] less verbose read/send logging

This commit is contained in:
Maximilian Hils 2017-08-16 00:00:14 +02:00
parent 9ea0259bb7
commit eaa8b32dd7
2 changed files with 8 additions and 0 deletions

View File

@ -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):
"""

View File

@ -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):
"""