From: Ian Jackson Date: Wed, 4 Aug 2021 10:41:01 +0000 (+0100) Subject: trace responses too etc. X-Git-Tag: hippotat/1.0.0~343 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=7afd81299bd8245decd3f19e7f324bff9bcbaddd;p=hippotat.git trace responses too etc. Signed-off-by: Ian Jackson --- diff --git a/src/bin/client.rs b/src/bin/client.rs index 70fe9b9..0a7441e 100644 --- a/src/bin/client.rs +++ b/src/bin/client.rs @@ -110,8 +110,8 @@ fn submit_request<'r, 'c:'r, C:HCC>( as_ref, ).map(|b| b.len()).sum(); - trace!("{} #{}: frames={} bytes={}", - &c.ic, req_num, upbound.len(), body_len); + trace!("{} #{}: req; tx bytes={} frames={}", + &c.ic, req_num, body_len, upbound.len()); let body = hyper::body::Body::wrap_stream( futures::stream::iter( @@ -149,7 +149,9 @@ fn submit_request<'r, 'c:'r, C:HCC>( let r = c.reporter.lock().filter(Some(req_num), r); - if r.is_none() { + if let Some(r) = &r { + trace!("{} #{}: rok; rx bytes={}", &c.ic, req_num, r.len()); + } else { tokio::time::sleep(c.ic.http_retry).await; } r