From a5359e61e76e518b8af7320ea4616f6f35869370 Mon Sep 17 00:00:00 2001 From: aydnOktay Date: Mon, 16 Mar 2026 15:25:30 +0300 Subject: [PATCH] fix(tools): improve error logging in skill_manager_tool --- tools/skill_manager_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/skill_manager_tool.py b/tools/skill_manager_tool.py index 6d0323bbd..6c229ab69 100644 --- a/tools/skill_manager_tool.py +++ b/tools/skill_manager_tool.py @@ -63,7 +63,7 @@ def _security_scan_skill(skill_dir: Path) -> Optional[str]: report = format_scan_report(result) return f"Security scan blocked this skill ({reason}):\n{report}" except Exception as e: - logger.warning("Security scan failed for %s: %s", skill_dir, e) + logger.warning("Security scan failed for %s: %s", skill_dir, e, exc_info=True) return None import yaml @@ -219,7 +219,7 @@ def _atomic_write_text(file_path: Path, content: str, encoding: str = "utf-8") - try: os.unlink(temp_path) except OSError: - pass + logger.error("Failed to remove temporary file %s during atomic write", temp_path, exc_info=True) raise