aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 22:24:58 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 22:24:58 +0100
commit7dbf848de3137158d1e12c2cd547ab4778fcf5a0 (patch)
tree41060b72fc2b3570f605cabcb585cbae94db108c
parent25ddb1b23e0ac1171cf83206c17245f1d93a8ae8 (diff)
downloadtricot-7dbf848de3137158d1e12c2cd547ab4778fcf5a0.tar.gz
tricot-7dbf848de3137158d1e12c2cd547ab4778fcf5a0.zip
Different logging
-rw-r--r--src/https.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/https.rs b/src/https.rs
index 33b8030..7d64e44 100644
--- a/src/https.rs
+++ b/src/https.rs
@@ -116,7 +116,10 @@ async fn handle(
proxy_to.calls.fetch_add(1, Ordering::SeqCst);
let to_addr = format!("http://{}", proxy_to.target_addr);
- info!("Proxying {} {} -> {}", host, path, to_addr);
+ let method = req.method().clone();
+
+ let uri = req.uri().to_string();
+ debug!("{}{} -> {}", host, path, proxy_to);
trace!("Request: {:?}", req);
let mut response = reverse_proxy::call(remote_addr.ip(), &to_addr, req).await?;
@@ -128,6 +131,7 @@ async fn handle(
);
}
trace!("Response: {:?}", response);
+ info!("{} {} {}", method, response.status().as_u16(), uri);
Ok(response)
} else {