mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-26 07:02:38 +01:00
logcat_parsing: Replace errors when decoding logcat output
Some devices print non standard characters to logcat. If an error occurs when parsing the output, replace the offending character instead of raising an error.
This commit is contained in:
@@ -51,7 +51,7 @@ class LogcatEvent(object):
|
||||
class LogcatParser(object):
|
||||
|
||||
def parse(self, filepath):
|
||||
with open(filepath) as fh:
|
||||
with open(filepath, errors='replace') as fh:
|
||||
for line in fh:
|
||||
event = self.parse_line(line)
|
||||
if event:
|
||||
|
Reference in New Issue
Block a user