feat: added trace
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user