From 796d5d5df0e21cf760e782d2dad4306afb56b16d Mon Sep 17 00:00:00 2001 From: Kim - DG9VH Date: Wed, 4 Nov 2020 11:46:10 +0100 Subject: [PATCH] Update logtailer.py --- logtailer.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/logtailer.py b/logtailer.py index 27289bb..35d9132 100644 --- a/logtailer.py +++ b/logtailer.py @@ -69,10 +69,8 @@ def view_log(websocket, path): content = f.read() if content: content = conv.convert(content, full=False) - lines = content.split("\n") - for line in lines: - if line.find('received') >0 or line.find('Sending') > 0: - yield from websocket.send(line) + if content.find('received') >0 or content.find('Sending') > 0: + yield from websocket.send(content) else: yield from asyncio.sleep(1)