From f2779f0116c417653885c24223176aeb6f20e6ba Mon Sep 17 00:00:00 2001 From: Guillaume Doussin Date: Wed, 5 Jun 2024 11:33:38 +0200 Subject: [PATCH] add log --- services/Python2To3Migrator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/Python2To3Migrator.py b/services/Python2To3Migrator.py index cf42412..1e5ae43 100644 --- a/services/Python2To3Migrator.py +++ b/services/Python2To3Migrator.py @@ -78,7 +78,8 @@ def run_generation(self, retriever, llm, output_parser, clone_dir) -> None: if file_parsed is not None: migrated_content = file_parsed.group(1) f = open(clone_dir + file, "w") - f.write(migrated_content) + written = f.write(migrated_content) + print("File written: {}, size: {}".format(clone_dir + file, written)) f.close() else: print("File parsing failure")