Fixed some small issues with some programs still using the old configuration way

This commit is contained in:
2024-11-15 18:38:33 +01:00
parent f48315f18e
commit 78933f6090
3 changed files with 21 additions and 28 deletions

View File

@@ -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}")