Skip to content

Commit

Permalink
ignore warnings for now (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis authored Dec 4, 2023
1 parent 06b2202 commit 90c1fee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion parse_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,12 @@ def format_collection_error(error, **formatter_kwargs):
print("Parsing logs ...")

lines = args.filepath.read_text().splitlines()
reports = [parse_record(json.loads(line)) for line in lines]
parsed_lines = [json.loads(line) for line in lines]
reports = [
parse_record(data)
for data in parsed_lines
if data["$report_type"] != "WarningMessage"
]

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

0 comments on commit 90c1fee

Please sign in to comment.