From 12933ccf52f9050048f398af6dded2471232bae9 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 25 Jul 2023 13:53:39 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20chore(=5F=5Fmain=5F=5F.py):=20ad?= =?UTF-8?q?d=20debug=20logs=20to=20update=5Fsettings=20function=20for=20be?= =?UTF-8?q?tter=20troubleshooting=20=E2=9C=A8=20feat(=5F=5Fmain=5F=5F.py):?= =?UTF-8?q?=20add=20support=20for=20loading=20settings=20from=20a=20specif?= =?UTF-8?q?ied=20config=20file=20=E2=9C=A8=20feat(=5F=5Fmain=5F=5F.py):=20?= =?UTF-8?q?add=20support=20for=20setting=20remove=5Fapi=5Fkeys=20flag=20?= =?UTF-8?q?=E2=9C=A8=20feat(=5F=5Fmain=5F=5F.py):=20add=20support=20for=20?= =?UTF-8?q?setting=20cache=20flag=20=E2=9C=A8=20feat(=5F=5Fmain=5F=5F.py):?= =?UTF-8?q?=20add=20support=20for=20adding=20component=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/backend/langflow/__main__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/langflow/__main__.py b/src/backend/langflow/__main__.py index 729d9207f..411a5f217 100644 --- a/src/backend/langflow/__main__.py +++ b/src/backend/langflow/__main__.py @@ -35,14 +35,18 @@ def update_settings( database_url = database_url or os.getenv("langflow_database_url") if config: + logger.debug(f"Loading settings from {config}") settings.update_from_yaml(config, dev=dev) if database_url: settings.update_settings(database_url=database_url) if remove_api_keys: + logger.debug(f"Setting remove_api_keys to {remove_api_keys}") settings.update_settings(remove_api_keys=remove_api_keys) if cache: + logger.debug(f"Setting cache to {cache}") settings.update_settings(cache=cache) if component_path: + logger.debug(f"Adding component path {component_path}") settings.update_settings(component_path=component_path)