From e5eea2d9fb514bf0bd87b4124ab9170ade8c8e91 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Sat, 1 Jul 2023 17:08:28 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(=5F=5Fmain=5F=5F.py):=20chan?= =?UTF-8?q?ge=20logger.error=20to=20logger.exception=20to=20log=20full=20e?= =?UTF-8?q?xception=20traceback=20The=20change=20is=20made=20to=20improve?= =?UTF-8?q?=20the=20logging=20of=20exceptions.=20Using=20logger.exception?= =?UTF-8?q?=20instead=20of=20logger.error=20allows=20the=20logger=20to=20l?= =?UTF-8?q?og=20the=20full=20traceback=20of=20the=20exception,=20providing?= =?UTF-8?q?=20more=20detailed=20information=20for=20debugging=20purposes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/__main__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/langflow/__main__.py b/src/backend/langflow/__main__.py index 9980a5d2f..322c6b6a9 100644 --- a/src/backend/langflow/__main__.py +++ b/src/backend/langflow/__main__.py @@ -271,7 +271,7 @@ def run_langflow(host, port, log_level, options, app): except KeyboardInterrupt: pass except Exception as e: - logger.error(e) + logger.exception(e) sys.exit(1)