CI: Add debug to the log aggregation script (#42562)

* CI: Add debug to the log aggregation script
This commit is contained in:
kwryankrattiger
2024-04-05 14:00:27 -05:00
committed by GitHub
parent c468697b35
commit c68d739825
2 changed files with 9 additions and 5 deletions

View File

@@ -37,10 +37,14 @@ def find_logs(prefix, filename):
# Look in the list of prefixes for logs
for prefix in prefixes:
logs = find_logs(prefix, args.log)
print(f"Walking {prefix}")
logs = [log for log in find_logs(prefix, args.log)]
print(f" * found {len(logs)} logs")
for log in logs:
print(f" * appending data for {log}")
with open(log) as fd:
data.append(json.load(fd))
print(f"Writing {args.output_file}")
with open(args.output_file, "w") as fd:
json.dump(data, fd)