From 0cf377cffc1f2917f95fe59ac0d92e19e37ffa81 Mon Sep 17 00:00:00 2001 From: Jakub Miazek Date: Sat, 23 Apr 2022 12:57:14 +0200 Subject: [PATCH] lru_cache fix --- the_app/config.py | 2 +- the_app/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/the_app/config.py b/the_app/config.py index 116b3b4..efab465 100644 --- a/the_app/config.py +++ b/the_app/config.py @@ -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() diff --git a/the_app/utils.py b/the_app/utils.py index 6c1ba75..d2f9f52 100644 --- a/the_app/utils.py +++ b/the_app/utils.py @@ -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)