📝 (endpoints.py): add debug log message to indicate building langchain types dict for better debugging and monitoring
This commit is contained in:
parent
a65965fcb3
commit
f3e49cb936
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue