mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
fix: Restore proper logging in _find_relevant_policies() exception handler
- Fix bug where exceptions were swallowed without logging in context_retriever.py - Restore warning log for policy search failures with sanitized category - Ensure compliance with PR Compliance ID 3 for robust error handling - Prevent silent failures that hinder debugging and mask missing policy coverage
This commit is contained in:
@@ -2134,6 +2134,7 @@ Answer:"""
|
||||
except Exception as e:
|
||||
# Sanitize category for logging (remove sensitive data)
|
||||
safe_category = category[:20] if category else "unknown"
|
||||
self.logger.warning(f"Failed to find policies for {safe_category}: {type(e).__name__}")
|
||||
return policies
|
||||
|
||||
# Decision Retrieval Methods
|
||||
|
||||
Reference in New Issue
Block a user