Improvements to query and self event detection, implement all command and debug flags
This commit is contained in:
7
utils/logging/debug.py
Normal file
7
utils/logging/debug.py
Normal file
@@ -0,0 +1,7 @@
|
||||
import main
|
||||
# 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)
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
def log(data):
|
||||
print("[LOG]", data)
|
||||
|
||||
def debug(data):
|
||||
print("[DEBUG]", data)
|
||||
|
||||
def warn(data):
|
||||
print("[WARNING]", data)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user