diff --git a/utils.py b/utils.py index 09a9f92..025a8e7 100644 --- a/utils.py +++ b/utils.py @@ -131,5 +131,5 @@ def log(log_level: int, message: str): if log_level not in [0, 1, 2]: print(f"[LOGGER] Got a message of unknown log level ({log_level}). Original message is printed below.") print(f"{message}") - elif cfg.LOG_LEVEL >= log_level: # if log level is valid + elif Config().LOG_LEVEL >= log_level: # if log level is valid print(f"[{log_mapping[log_level]}] {message}") \ No newline at end of file