Fixed log viewer showing last line of log two times.

pull/1427/head
morpheus65535 4 years ago
parent 8cf02e31c9
commit 11fb78fafa

@ -536,6 +536,8 @@ class SystemLogs(Resource):
raw_lines = file.read() raw_lines = file.read()
lines = raw_lines.split('|\n') lines = raw_lines.split('|\n')
for line in lines: for line in lines:
if line == '':
continue
raw_message = line.split('|') raw_message = line.split('|')
raw_message_len = len(raw_message) raw_message_len = len(raw_message)
if raw_message_len > 3: if raw_message_len > 3:

Loading…
Cancel
Save