log: Add tracing events through core for future debugability.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user