2019-08-15 20:20:49 +00:00
|
|
|
import main
|
2022-07-21 12:39:41 +00:00
|
|
|
|
2019-08-15 20:20:49 +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
|
2019-10-11 12:04:58 +00:00
|
|
|
def debug(*data):
|
2019-08-15 20:20:49 +00:00
|
|
|
if main.config["Debug"]:
|
2019-10-11 12:04:58 +00:00
|
|
|
print("[DEBUG]", *data)
|
2019-08-15 20:20:49 +00:00
|
|
|
|
2022-07-21 12:39:41 +00:00
|
|
|
|
2020-10-31 00:10:33 +00:00
|
|
|
def trace(*data):
|
|
|
|
if main.config["Trace"]:
|
|
|
|
print("[TRACE]", *data)
|