log: Add tracing events through core for future debugability.

This commit is contained in:
2026-03-14 11:56:01 -04:00
parent bb3f200141
commit c6d80a9650
7 changed files with 83 additions and 12 deletions

View File

@@ -81,7 +81,10 @@ pub trait HookHandler: Send + Sync {
/// tracing.
pub fn parse_hook_response(line: &str) -> Option<HookResponse> {
match serde_json::from_str::<HookResponse>(line) {
Ok(resp) => Some(resp),
Ok(resp) => {
tracing::debug!(response = ?resp, "parsed hook response");
Some(resp)
}
Err(e) => {
tracing::warn!(line, error = %e, "failed to parse hook response");
None