CI: Add debug to the log aggregation script (#42562)
* CI: Add debug to the log aggregation script
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user