diff --git a/ythdd_globals.py b/ythdd_globals.py index cb3eb15..198a03c 100644 --- a/ythdd_globals.py +++ b/ythdd_globals.py @@ -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)