Fixed some small issues with some programs still using the old configuration way
This commit is contained in:
4
utils.py
4
utils.py
@@ -117,8 +117,6 @@ class Config:
|
||||
def __delattr__(self, name):
|
||||
raise AttributeError(f"You may not delete any attribute of the '{self.__class__.__name__}' object")
|
||||
|
||||
cfg = Config()
|
||||
|
||||
|
||||
"""
|
||||
Very simple logging function
|
||||
@@ -133,5 +131,3 @@ def log(log_level: int, message: str):
|
||||
elif cfg.LOG_LEVEL >= log_level: # if log level is valid
|
||||
print(f"[{log_mapping[log_level]}] {message}")
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user