diff --git a/src/gateway/mod.rs b/src/gateway/mod.rs index 638de00..64d9ba6 100644 --- a/src/gateway/mod.rs +++ b/src/gateway/mod.rs @@ -544,8 +544,9 @@ async fn handle_webhook( let Json(webhook_body) = match body { Ok(b) => b, Err(e) => { + tracing::warn!("Webhook JSON parse error: {e}"); let err = serde_json::json!({ - "error": format!("Invalid JSON: {e}. Expected: {{\"message\": \"...\"}}") + "error": "Invalid JSON body. Expected: {\"message\": \"...\"}" }); return (StatusCode::BAD_REQUEST, Json(err)); }