mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Only use verbose console if user add -v flag
This commit is contained in:
parent
c434833208
commit
46effe1fe6
@ -19,6 +19,8 @@ except ModuleNotFoundError as ex:
|
||||
|
||||
|
||||
class Console:
|
||||
level = ""
|
||||
|
||||
def __init__(self):
|
||||
if "colorama" in sys.modules:
|
||||
init()
|
||||
@ -61,8 +63,9 @@ class Console:
|
||||
|
||||
@staticmethod
|
||||
def debug(message):
|
||||
date_time = Console.get_fmt_date_time()
|
||||
Console.magenta(f"[+] Crafty: {date_time} - DEBUG:\t{message}")
|
||||
if Console.level == "debug":
|
||||
date_time = Console.get_fmt_date_time()
|
||||
Console.magenta(f"[+] Crafty: {date_time} - DEBUG:\t{message}")
|
||||
|
||||
@staticmethod
|
||||
def info(message):
|
||||
|
Loading…
Reference in New Issue
Block a user