Skip to content

Commit 90c1fee

Browse files
authored
ignore warnings for now (#29)
1 parent 06b2202 commit 90c1fee

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

parse_logs.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,12 @@ def format_collection_error(error, **formatter_kwargs):
227227
print("Parsing logs ...")
228228

229229
lines = args.filepath.read_text().splitlines()
230-
reports = [parse_record(json.loads(line)) for line in lines]
230+
parsed_lines = [json.loads(line) for line in lines]
231+
reports = [
232+
parse_record(data)
233+
for data in parsed_lines
234+
if data["$report_type"] != "WarningMessage"
235+
]
231236

232237
failed = [report for report in reports if report.outcome == "failed"]
233238
preformatted = [preformat_report(report) for report in failed]

0 commit comments

Comments
 (0)