Fix missing logging when using debug level

This commit is contained in:
Luigi311
2022-12-19 13:22:42 -07:00
parent e8faf52b2b
commit 39b33f3d43
2 changed files with 3 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ def logger(message: str, log_type=0):
output = str(message)
if log_type == 0:
pass
elif log_type == 1 and (debug and debug_level == "info"):
elif log_type == 1 and (debug and debug_level in ("info", "debug")):
output = f"[INFO]: {output}"
elif log_type == 2:
output = f"[ERROR]: {output}"