diff --git a/agent/prompt_builder.py b/agent/prompt_builder.py index 3a6ec2441..95b9b4bb9 100644 --- a/agent/prompt_builder.py +++ b/agent/prompt_builder.py @@ -583,7 +583,7 @@ def _parse_skill_file(skill_file: Path) -> tuple[bool, dict, str]: return True, frontmatter, extract_skill_description(frontmatter) except Exception as e: - logger.warning("Failed to parse skill file %s: %s", skill_file, e) + logger.warning("Failed to parse skill file %s: %s", skill_file, e, exc_info=True) return True, {}, "" diff --git a/agent/trajectory.py b/agent/trajectory.py index 90696eb8a..1d2e94315 100644 --- a/agent/trajectory.py +++ b/agent/trajectory.py @@ -53,4 +53,4 @@ def save_trajectory(trajectory: List[Dict[str, Any]], model: str, f.write(json.dumps(entry, ensure_ascii=False) + "\n") logger.info("Trajectory saved to %s", filename) except Exception as e: - logger.warning("Failed to save trajectory: %s", e) + logger.warning("Failed to save trajectory: %s", e, exc_info=True)