Skip to content

Commit 996a6f7

Browse files
committed
checks: improved final log messages
1 parent 2c1a882 commit 996a6f7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/check_licenses.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,20 @@ async def check_all_paths():
6262
results = await asyncio.gather(*tasks, return_exceptions=True)
6363

6464
finish_time = time.perf_counter() - start_time
65-
logging.info(f"Validated {len(all_paths)} files within {finish_time:.2f} seconds.")
65+
logging.info(f"Processed {len(all_paths)} files within {finish_time:.2f} seconds.")
6666

6767
if any(isinstance(result, Exception) for result in results):
6868
errors = len([1 for result in results if isinstance(result, Exception)])
6969
logging.error(
70-
f"Checks completed with {errors} errors!\n"
70+
f"Validation completed with {errors} errors!\n"
7171
f"\tPlease ensure the licenses are one of the following: {VALID_LICENSE_IDENTIFIERS}.\n"
7272
f"\tIn case it is a valid license, please contact the Open Data Team."
7373
)
7474
exit(1)
7575

7676
else:
7777
logging.info(
78-
"Checks completed successfully!\n"
79-
f"\tChecked {sum(results)} records within {finish_time:.2f} seconds."
78+
f"Successfully validated {sum(results)} records. No errors found."
8079
)
8180

8281

0 commit comments

Comments
 (0)