aboutsummaryrefslogtreecommitdiff
path: root/src/https.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/https.rs')
-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 {