Compare commits

...

1 Commits

Author SHA1 Message Date
Anna Khanova
430b607be6 Test logging 2024-03-05 12:35:41 +01:00

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) {