Fix log levels

msgspec_infect_asyncio
Tyler Goodlet 2021-09-05 16:29:16 -04:00
parent bdde646d4c
commit fa6d9bef52
1 changed files with 2 additions and 2 deletions
tractor

View File

@ -160,11 +160,11 @@ class MsgspecTCPStream(MsgpackTCPStream):
size, = struct.unpack("<I", header) size, = struct.unpack("<I", header)
log.trace(f'received header {size}') # type: ignore log.transport(f'received header {size}') # type: ignore
msg_bytes = await self.recv_stream.receive_exactly(size) msg_bytes = await self.recv_stream.receive_exactly(size)
log.trace(f"received {msg_bytes}") # type: ignore log.transport(f"received {msg_bytes}") # type: ignore
yield self.decode(msg_bytes) yield self.decode(msg_bytes)
async def send(self, data: Any) -> None: async def send(self, data: Any) -> None: