listen on udp and tcp for json logs as well

This commit is contained in:
Chris Beck
2025-12-05 15:12:20 -07:00
parent a42aad48f4
commit ffa1246e51
7 changed files with 74 additions and 44 deletions
+6 -4
View File
@@ -61,10 +61,12 @@ impl MessageHandler for AdminHttpHandler {
.map_err(|err| (502u16, format!("HTTP request failed: {err}").into()))?;
let status = response.status();
let body = response
.text()
.await
.map_err(|err| (502u16, format!("Failed to read response body: {err}").into()))?;
let body = response.text().await.map_err(|err| {
(
502u16,
format!("Failed to read response body: {err}").into(),
)
})?;
if !status.is_success() {
return Err((status.as_u16(), body.into()));