From 55f468be3d3ed7cb0131f40117c383434b357d28 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Thu, 20 Jul 2023 06:59:04 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(chat.py):=20add=20exception?= =?UTF-8?q?=20logging=20to=20track=20errors=20in=20stream=5Fbuild=20functi?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/api/v1/chat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/langflow/api/v1/chat.py b/src/backend/langflow/api/v1/chat.py index 937eb2cf6..43f10a54b 100644 --- a/src/backend/langflow/api/v1/chat.py +++ b/src/backend/langflow/api/v1/chat.py @@ -134,6 +134,7 @@ async def stream_build(flow_id: str): # to set the input_keys values artifacts.update(vertex.artifacts) except Exception as exc: + logger.exception(exc) params = str(exc) valid = False flow_data_store[flow_id]["status"] = BuildStatus.FAILURE