|
|
@ -69,10 +69,8 @@ def view_log(websocket, path):
|
|
|
|
content = f.read()
|
|
|
|
content = f.read()
|
|
|
|
if content:
|
|
|
|
if content:
|
|
|
|
content = conv.convert(content, full=False)
|
|
|
|
content = conv.convert(content, full=False)
|
|
|
|
lines = content.split("\n")
|
|
|
|
if content.find('received') >0 or content.find('Sending') > 0:
|
|
|
|
for line in lines:
|
|
|
|
yield from websocket.send(content)
|
|
|
|
if line.find('received') >0 or line.find('Sending') > 0:
|
|
|
|
|
|
|
|
yield from websocket.send(line)
|
|
|
|
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
yield from asyncio.sleep(1)
|
|
|
|
yield from asyncio.sleep(1)
|
|
|
|
|
|
|
|
|
|
|
|