Skip to content

Commit

Permalink
pref: add debug printer
Browse files Browse the repository at this point in the history
  • Loading branch information
hayden-fr committed Nov 15, 2024
1 parent 4038e24 commit 6ae7e18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, "/")
Expand Down

0 comments on commit 6ae7e18

Please sign in to comment.