[+] Add caller info to debug

This commit is contained in:
Hykilpikonna
2021-11-22 10:36:26 -05:00
parent 46b8f80b70
commit 44831c6b30
+3 -1
View File
@@ -1,4 +1,5 @@
import dataclasses
import inspect
import json
import os
from dataclasses import dataclass
@@ -53,7 +54,8 @@ def debug(msg: object) -> None:
:param msg: Message
"""
print('[DEBUG] ' + str(msg))
caller = inspect.stack()[1].function
print(f'[DEBUG] {caller}: {msg}')
def normalize_directory(directory: str) -> str: