feat: add debug printing
allows to print messages to stdout only if the instance has debugging enabled
This commit is contained in:
@@ -151,3 +151,7 @@ def getCommit() -> str | None:
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def print_debug(text: str) -> None:
|
||||||
|
# Will print a string only if debugging is enabled.
|
||||||
|
if config["general"]["debug"]:
|
||||||
|
print(text)
|
||||||
|
|||||||
Reference in New Issue
Block a user