several FontAwesome icons changed.

This commit is contained in:
2024-12-23 15:11:49 +09:00
parent 31e4a50ad8
commit d850f50e25
7 changed files with 244 additions and 120 deletions

View File

@@ -21,7 +21,10 @@ class CustomLogger:
# Уровень логирования по умолчанию из .env
default_level = os.getenv("LOG_LEVEL", "INFO").upper()
self.log_level = getattr(logging, log_level.upper(), getattr(logging, default_level, logging.INFO))
if log_level:
self.log_level = getattr(logging, log_level.upper(), getattr(logging, default_level, logging.INFO))
else:
self.log_level = getattr(logging, default_level, logging.INFO)
self.setup_logger()