Commit fb1d237e authored by Leo Iannacone's avatar Leo Iannacone

Merge remote-tracking branch 'github/master' into portable

parents 00f383b1 a98f146d
...@@ -213,15 +213,8 @@ class LogParser(): ...@@ -213,15 +213,8 @@ class LogParser():
def parse_piuparts(self): def parse_piuparts(self):
with open(self.file, 'r') as fd: with open(self.file, 'r') as fd:
offs = -1024 lines = fd.readlines()
while True: if len(lines) == 0 or lines[-1].find('ERROR:') >= 0:
fd.seek(offs, 2)
lines = fd.readlines()
if len(lines) > 1:
last_line = lines[-1]
break
offs *= 2
if last_line.find('ERROR:') >= 0:
return 'E' return 'E'
return None return None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment