From 7ec16c749db1a5d91c48d6d95eb0a4318c1ea60c Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Wed, 30 Dec 2020 13:34:55 +0000 Subject: [PATCH] Bugfixing --- logtailer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/logtailer.py b/logtailer.py index 2ba604c..ec2eefd 100644 --- a/logtailer.py +++ b/logtailer.py @@ -108,7 +108,7 @@ async def view_log(websocket, path): raise ValueError('File not found', format(file_path)) with open(file_path, newline = '\n', encoding="utf8", errors='ignore') as f: - content = ''.join(deque(f, 2)) + content = ''.join(deque(f, int(config['DEFAULT']['MaxLines']))) content = conv.convert(content, full=False) lines = content.split("\n") for line in lines: