Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
Fix: fix load_yaml logging, Avoid setting the log level to warning (#5019)
fishisnow11fd4a5dcc65
diff --git a/api/core/tools/utils/yaml_utils.py b/api/core/tools/utils/yaml_utils.pyindex 22e4d3d1280..3526647b4f6 100644--- a/api/core/tools/utils/yaml_utils.py+++ b/api/core/tools/utils/yaml_utils.py@@ -4,6 +4,7 @@ import osimport yamlfrom yaml import YAMLError+logger = logging.getLogger(__name__)def load_yaml_file(file_path: str, ignore_error: bool = False) -> dict:"""@@ -24,11 +25,11 @@ def load_yaml_file(file_path: str, ignore_error: bool = False) -> dict:except Exception as e:raise YAMLError(f'Failed to load YAML file {file_path}: {e}')except FileNotFoundError as e:- logging.debug(f'Failed to load YAML file {file_path}: {e}')+ logger.debug(f'Failed to load YAML file {file_path}: {e}')return {}except Exception as e:if ignore_error:- logging.warning(f'Failed to load YAML file {file_path}: {e}')+ logger.warning(f'Failed to load YAML file {file_path}: {e}')return {}else:raise e