From e2d1d35a6d56bbdb8b5e6edd3caef3cf84fd306a Mon Sep 17 00:00:00 2001 From: Astro Date: Fri, 3 Mar 2023 02:20:26 +0100 Subject: [PATCH] send: add error reporting --- src/send.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/send.rs b/src/send.rs index 53d93d8..de817f1 100644 --- a/src/send.rs +++ b/src/send.rs @@ -87,7 +87,9 @@ pub async fn send_raw( Ok(()) } else { histogram!("relay_http_response_duration", t3 - t2, "res" => "err", "host" => host); + tracing::error!("send_raw {} response HTTP {}", url, res.status()); let response = res.text().await?; + tracing::error!("send_raw {} response body: {:?}", url, response); Err(SendError::Response(response)) } }