feat: add writing log
This commit is contained in:
@@ -52,6 +52,7 @@ class Generator:
|
||||
try:
|
||||
self.target_path.parent.mkdir(parents=True, exist_ok=True)
|
||||
self.target_path.write_text(content)
|
||||
self.log.info("Wrote output to %s", self.target_path)
|
||||
except OSError as e:
|
||||
self.log.error(
|
||||
"Could not write output file at: %s (%s)", self.target_path, e
|
||||
|
||||
Reference in New Issue
Block a user