🔧 chore(__main__.py): add debug logs to update_settings function for better troubleshooting

 feat(__main__.py): add support for loading settings from a specified config file
 feat(__main__.py): add support for setting remove_api_keys flag
 feat(__main__.py): add support for setting cache flag
 feat(__main__.py): add support for adding component path
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-25 13:53:39 -03:00
commit 12933ccf52

View file

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