Skip to content

Commit

Permalink
logger message
Browse files Browse the repository at this point in the history
  • Loading branch information
aradhakrishnanGFDL committed Oct 3, 2024
1 parent aeafc17 commit a0f97c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions catalogbuilder/intakebuilder/CSVwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def listdict_to_csv(dict_info,headerlist, csvfile, overwrite, append,slow):
if append:
with open(csvfile, 'a') as csvfile:
writer = csv.DictWriter(csvfile, fieldnames=headerlist)
print("writing (without header)..")
logger.info("writing (without header)..")
for data in dict_info:
if len(data.keys()) > 2:
writer.writerow(data)
Expand All @@ -70,7 +70,7 @@ def listdict_to_csv(dict_info,headerlist, csvfile, overwrite, append,slow):
if user_input.lower() == 'y':
with open(csvfile, 'w') as csvfile:
writer = csv.DictWriter(csvfile, fieldnames=headerlist)
print("writing..")
logger.debug("writing..")
writer.writeheader()
for data in dict_info:
if len(data.keys()) > 2:
Expand All @@ -91,7 +91,7 @@ def listdict_to_csv(dict_info,headerlist, csvfile, overwrite, append,slow):
else:
with open(csvfile, 'w') as csvfile:
writer = csv.DictWriter(csvfile, fieldnames=headerlist)
print("writing..")
logger.debug("writing..")
writer.writeheader()
for data in dict_info:
if len(data.keys()) > 2:
Expand Down

0 comments on commit a0f97c6

Please sign in to comment.