Skip to content
Snippets Groups Projects
Commit 6316e15f authored by Eliott Sammier's avatar Eliott Sammier
Browse files

Replace print flooding with cleaner log.debug

parent 2a5ddad0
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ def create_file(root: Path, path: Path, body: str): ...@@ -16,7 +16,7 @@ def create_file(root: Path, path: Path, body: str):
# Create parent dir if needed # Create parent dir if needed
path.parent.mkdir(parents=True, exist_ok=True) path.parent.mkdir(parents=True, exist_ok=True)
# Create and write file # Create and write file
print(f"{path} ->\n{body}") log.debug(f"File {path} ->\n{body}")
with open(path, "w") as f: with open(path, "w") as f:
f.write(body) f.write(body)
......
...@@ -49,5 +49,5 @@ def apply_templates() -> str: ...@@ -49,5 +49,5 @@ def apply_templates() -> str:
# ==> Run STTL transformation # ==> Run STTL transformation
tr = Transformer.create(graph, MODULE_DIR + "/../templates/") tr = Transformer.create(graph, MODULE_DIR + "/../templates/")
result = tr.transform() result = tr.transform()
print(result) log.debug("Raw STTL output follows: \n" + result)
return result return result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment