Use trace level for packet contents

asyncgen_closing_fix
Tyler Goodlet 2018-06-22 23:31:43 -04:00
parent bed7e240de
commit 4eb014aedc
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ class StreamQueue:
while True:
try:
data = await self.stream.receive_some(2**10)
log.trace(f"Data is {data}")
log.trace(f"received {data}")
except trio.BrokenStreamError:
log.error(f"Stream connection {self.raddr} broke")
return
@ -109,7 +109,7 @@ class Channel:
return stream
async def send(self, item):
log.debug(f"send `{item}`")
log.trace(f"send `{item}`")
await self.squeue.put(item)
async def recv(self):