Test logging

This commit is contained in:
Anna Khanova
2024-03-05 12:35:41 +01:00
parent b7db912be6
commit 430b607be6

View File

@@ -134,7 +134,9 @@ impl Api {
let start = Instant::now();
let response = self.endpoint.execute(request).await?;
info!(duration = ?start.elapsed(), "received http response");
info!(response = ?response, "this is response");
let body = parse_body::<WakeCompute>(response).await?;
info!(body = ?body, "parsed response body");
// Unfortunately, ownership won't let us use `Option::ok_or` here.
let (host, port) = match parse_host_port(&body.address) {