From ae11e378d2217b12a2c73d25ce87d0ef0691ebea Mon Sep 17 00:00:00 2001 From: strawberry Date: Sat, 13 Jan 2024 18:08:50 -0500 Subject: [PATCH] debug log well-known response body and text Signed-off-by: strawberry --- src/api/server_server.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/api/server_server.rs b/src/api/server_server.rs index 87cf0e44..1a203f7d 100644 --- a/src/api/server_server.rs +++ b/src/api/server_server.rs @@ -550,12 +550,14 @@ async fn request_well_known(destination: &str) -> Option { .send() .await; debug!("Got well known response"); + debug!("Well known response: {:?}", response); if let Err(e) = &response { debug!("Well known error: {e:?}"); return None; } let text = response.ok()?.text().await; debug!("Got well known response text"); + debug!("Well known response text: {:?}", text); let body: serde_json::Value = serde_json::from_str(&text.ok()?).ok()?; Some(body.get("m.server")?.as_str()?.to_owned()) }