mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:08:07 +08:00
feat(api): Implement EventManager error logging and add coverage (#29204)
- Ensure `EventManager._notify_layers` logs exceptions instead of silently swallowing them so GraphEngine layer failures surface for debugging - Introduce unit tests to assert the logger captures the runtime error when collecting events - Enable the `S110` lint rule to catch `try-except-pass` patterns - Add proper error logging for existing `try-except-pass` blocks.
This commit is contained in:
@ -211,7 +211,7 @@ class AppService:
|
||||
# override tool parameters
|
||||
tool["tool_parameters"] = masked_parameter
|
||||
except Exception:
|
||||
pass
|
||||
logger.exception("Failed to mask agent tool parameters for tool %s", agent_tool_entity.tool_name)
|
||||
|
||||
# override agent mode
|
||||
if model_config:
|
||||
|
||||
Reference in New Issue
Block a user