Skip to content

Commit

Permalink
add print and logger statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanraaschCDC committed Jan 23, 2025
1 parent 94407f6 commit 38ea2fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cfa_azure/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2431,6 +2431,7 @@ def download_job_stats(
"node_id",
]
with open(rf"{file_name}.csv", "w") as f:
logger.debug(f"initializing {file_name}.csv.")
writer = csv.writer(f, delimiter="|")
writer.writerow(fields)
for item in r:
Expand All @@ -2449,3 +2450,5 @@ def download_job_stats(
with open(rf"{file_name}.csv", "a") as f:
writer = csv.writer(f, delimiter="|")
writer.writerow(fields)
logger.debug("wrote task to job statistic csv.")
print(f"Downloaded job statistics report to {file_name}.csv.")

0 comments on commit 38ea2fc

Please sign in to comment.