Skip to content

Commit d1cc335

Browse files
committed
log stdout message before output_file handler is added, to avoid corrupting the json output
1 parent bf3da56 commit d1cc335

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adabot/update_cp_org_libraries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ def main(
171171
logger.info("Run Date: %s", run_time.strftime("%d %B %Y, %I:%M%p"))
172172

173173
if output_file:
174+
logger.info(" - Report output will be saved to: %s", output_file)
174175
file_handler = logging.FileHandler(output_file)
175176
logger.addHandler(file_handler)
176-
logger.info(" - Report output will be saved to: %s", output_file)
177177

178178
if cache_http:
179179
cpy_vals.github.setup_cache(cache_ttl)

0 commit comments

Comments
 (0)