feat: add debug printing

allows to print messages to stdout only if the instance has debugging
enabled
This commit is contained in:
2025-10-18 14:23:08 +02:00
parent da54bd0818
commit 760aaccfff

View File

@@ -151,3 +151,7 @@ def getCommit() -> str | None:
except Exception as e:
return None
def print_debug(text: str) -> None:
# Will print a string only if debugging is enabled.
if config["general"]["debug"]:
print(text)