🐛 fix(__main__.py): change logger.error to logger.exception to log full exception traceback

The change is made to improve the logging of exceptions. Using logger.exception instead of logger.error allows the logger to log the full traceback of the exception, providing more detailed information for debugging purposes.
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-01 17:08:28 -03:00
commit e5eea2d9fb

View file

@ -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)