feat: added trace

This commit is contained in:
2024-04-10 10:25:05 +02:00
parent 0e2de49831
commit 4e52c0478a
6 changed files with 27 additions and 7 deletions

View File

@@ -8,8 +8,6 @@ from .config import config, read_config, write_config
from .enums.colors import BColors
from .path_manager import LOCATIONS
DEBUG = False
"""
IO functions
"""
@@ -48,6 +46,12 @@ def dump_to_file(file_name: str, payload: str, is_json: bool = False, exit_after
exit()
def trace(msg: str):
if DEBUG_LOGGING:
logging.debug(msg)
output("trace: " + msg, BColors.OKBLUE)
"""
misc functions