Skip to content

Commit

Permalink
fix: using logger.error to raise detailed error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Jan 21, 2025
1 parent 40fa53b commit 857dfbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dify_plugin/core/utils/yaml_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 857dfbc

Please sign in to comment.