Skip to content

Commit b1a0fba

Browse files
committed
use supplied logger and improve info message
1 parent 62e6f9e commit b1a0fba

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

scripts/shared.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ def update_readme(
141141
"""
142142
Update the README.md file with the generated images and descriptions.
143143
"""
144+
if not args.enable_save:
145+
return
146+
LOGGER = args.logger
147+
144148
readme_path = path_join(paths["data"], args.quarter, "README.md")
145149

146150
# Define section markers for each data source
@@ -220,9 +224,9 @@ def update_readme(
220224
with open(readme_path, "w") as f:
221225
f.writelines(lines)
222226

223-
logging.info(
224-
f"Updated {readme_path} with new image and"
225-
f"description for {section_title}."
227+
LOGGER.info(f"README path: {readme_path.replace(paths['repo'], '.')}")
228+
LOGGER.info(
229+
f"Updated README with new image and description for {section_title}."
226230
)
227231

228232

0 commit comments

Comments
 (0)