From 857dfbc065314c453fd913605e23a611c2e63689 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Tue, 21 Jan 2025 16:37:36 +0800 Subject: [PATCH] fix: using logger.error to raise detailed error messages --- python/dify_plugin/core/utils/yaml_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/dify_plugin/core/utils/yaml_loader.py b/python/dify_plugin/core/utils/yaml_loader.py index c05cae9..f693667 100644 --- a/python/dify_plugin/core/utils/yaml_loader.py +++ b/python/dify_plugin/core/utils/yaml_loader.py @@ -33,7 +33,7 @@ def load_yaml_file(file_path: str, ignore_error: bool = False) -> dict: return {} except Exception as e: if ignore_error: - logger.warning(f"Failed to load YAML file {file_path}: {e}") + logger.error(f"Failed to load YAML file {file_path}: {e}") return {} else: raise e