monolith/utils/logging/debug.py

13 lines
296 B
Python
Raw Normal View History

import main
2022-07-21 12:39:41 +00:00
# we need a seperate module to log.py, as log.py is imported by main.py, and we need to access main
# to read the setting
def debug(*data):
if main.config["Debug"]:
print("[DEBUG]", *data)
2022-07-21 12:39:41 +00:00
def trace(*data):
if main.config["Trace"]:
print("[TRACE]", *data)