From f3e49cb936c46ddb66c65f7d9850f9769bb20a85 Mon Sep 17 00:00:00 2001 From: ogabrielluiz Date: Tue, 4 Jun 2024 16:33:36 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20(endpoints.py):=20add=20debug=20?= =?UTF-8?q?log=20message=20to=20indicate=20building=20langchain=20types=20?= =?UTF-8?q?dict=20for=20better=20debugging=20and=20monitoring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/base/langflow/api/v1/endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/base/langflow/api/v1/endpoints.py b/src/backend/base/langflow/api/v1/endpoints.py index db89a0e7f..e1da15e92 100644 --- a/src/backend/base/langflow/api/v1/endpoints.py +++ b/src/backend/base/langflow/api/v1/endpoints.py @@ -58,11 +58,11 @@ async def get_all( ): from langflow.interface.types import aget_all_types_dict - logger.debug("Building langchain types dict") try: async with Lock() as lock: all_types_dict = await cache_service.get(key="all_types_dict", lock=lock) if not all_types_dict or force_refresh: + logger.debug("Building langchain types dict") all_types_dict = await aget_all_types_dict(settings_service.settings.components_path) await cache_service.set(key="all_types_dict", value=all_types_dict, lock=lock) return all_types_dict