Skip to content

Commit a4658bc

Browse files
committed
tests/record: Add debug logging to replay_http()
1 parent 7aa98c9 commit a4658bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tests/record.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ fn replay_http(
292292
) -> impl Future<Output = Result<Response<Body>, Error>> + Send {
293293
static IGNORED_HEADERS: &[&str] = &["authorization", "date", "cache-control"];
294294

295+
debug!("<- {:?}", req);
295296
assert_eq!(req.uri().to_string(), exchange.request.uri);
296297
assert_eq!(req.method().to_string(), exchange.request.method);
297298
assert_ok!(writeln!(
@@ -337,6 +338,7 @@ fn replay_http(
337338
let status = StatusCode::from_u16(exchange.response.status).unwrap();
338339
let response = builder.status(status).body(body.into()).unwrap();
339340

341+
debug!("-> {:?}", response);
340342
Ok(response)
341343
}
342344
}

0 commit comments

Comments
 (0)