From 6ae7e1835f9ef7ab3b1057b4cd76f737fa96842a Mon Sep 17 00:00:00 2001 From: hayden <48267247+hayden-fr@users.noreply.github.com> Date: Wed, 13 Nov 2024 09:57:59 +0800 Subject: [PATCH] pref: add debug printer --- py/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/py/utils.py b/py/utils.py index 1057d5a..a3efa54 100644 --- a/py/utils.py +++ b/py/utils.py @@ -25,6 +25,10 @@ def print_error(msg, *args, **kwargs): logging.debug(traceback.format_exc()) +def print_debug(msg, *args, **kwargs): + logging.debug(f"[{config.extension_tag}] {msg}", *args, **kwargs) + + def normalize_path(path: str): normpath = os.path.normpath(path) return normpath.replace(os.path.sep, "/")