Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit 39395a75 authored by miigotu's avatar miigotu
Browse files

Fix linebreak in log

parent 028c50eb
No related branches found
No related tags found
No related merge requests found
......@@ -510,7 +510,7 @@ def log_data(min_level, log_filter, log_search, max_lines):
for _log_file in log_files:
if len(data) < max_lines:
with io.open(_log_file, 'r', encoding='utf-8') as f:
data += [line.strip() for line in reversed(f.readlines()) if line.strip()]
data += [line.strip() + '\n' for line in reversed(f.readlines()) if line.strip()]
else:
break
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment