mirror of
https://github.com/astro/buzzrelay.git
synced 2024-11-21 19:51:00 +00:00
send: add error reporting
This commit is contained in:
parent
e207dda2fe
commit
e2d1d35a6d
1 changed files with 2 additions and 0 deletions
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue