Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Commit

Permalink
Improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
copierrj committed Oct 19, 2021
1 parent aa0f529 commit 603d546
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions linkage_checker/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,17 @@ def main(

results = []
number_off_ngr_records = len(all_ngr_records)

logger.info("number of ngr records found: %d", number_off_ngr_records)

for index in range(number_off_ngr_records):
ngr_record = all_ngr_records[index]
logger.info(
"%s/%s validating dataset %s",
"%s/%s validating dataset %s (%s)",
index + 1,
number_off_ngr_records,
ngr_record["title"],
ngr_record["uuid"]
)

start_time_detail = datetime.now()
Expand All @@ -65,7 +69,11 @@ def main(
"linkage_check_results": None
}

logger.debug(trace)
logger.error(
"failed to validate dataset %s (%s): %s",
ngr_record["title"],
ngr_record["uuid"],
trace)

results.append(result)

Expand Down

0 comments on commit 603d546

Please sign in to comment.