python 3.10 improvements

This commit is contained in:
grillazz 2022-05-15 14:01:05 +02:00
parent c37d89fa67
commit 96f41a0b5c
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class Settings(BaseSettings):
jwt_access_toke_expire_minutes: int = os.getenv("ACCESS_TOKEN_EXPIRE_MINUTES", 1)
@lru_cache
@lru_cache()
def get_settings():
logger.info("Loading config settings from the environment...")
return Settings()

View File

@ -7,7 +7,7 @@ from rich.logging import RichHandler
console = Console(color_system="256", width=200, style="blue")
@lru_cache
@lru_cache()
def get_logger(module_name):
logger = logging.getLogger(module_name)
handler = RichHandler(rich_tracebacks=True, console=console, tracebacks_show_locals=True)