From 38ea2fcecfc165841df1e7eecbd172022c9b26b2 Mon Sep 17 00:00:00 2001 From: Ryan Raasch Date: Thu, 23 Jan 2025 14:53:04 +0000 Subject: [PATCH] add print and logger statements --- cfa_azure/helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cfa_azure/helpers.py b/cfa_azure/helpers.py index 42a2d5e..64c38d5 100644 --- a/cfa_azure/helpers.py +++ b/cfa_azure/helpers.py @@ -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: @@ -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.")