fix: log prompt builder skill parsing fallbacks

This commit is contained in:
teknium1
2026-03-14 02:19:30 -07:00
parent 1117a21065
commit 1e23d14568
2 changed files with 37 additions and 2 deletions

View File

@@ -177,7 +177,8 @@ def _parse_skill_file(skill_file: Path) -> tuple[bool, dict, str]:
desc = desc[:57] + "..."
return True, frontmatter, desc
except Exception:
except Exception as e:
logger.debug("Failed to parse skill file %s: %s", skill_file, e)
return True, {}, ""
@@ -194,7 +195,8 @@ def _read_skill_conditions(skill_file: Path) -> dict:
"fallback_for_tools": hermes.get("fallback_for_tools", []),
"requires_tools": hermes.get("requires_tools", []),
}
except Exception:
except Exception as e:
logger.debug("Failed to read skill conditions from %s: %s", skill_file, e)
return {}