fix log message
This commit is contained in:
parent
76cf7a38b5
commit
22a4896693
2 changed files with 13 additions and 3 deletions
|
|
@ -31,7 +31,17 @@ where
|
|||
mut req: Request<Body>,
|
||||
client_addr: SocketAddr, // アクセス制御用
|
||||
) -> Result<Response<Body>> {
|
||||
debug!("Handling request: {:?}", req);
|
||||
info!(
|
||||
"Handling {:?} request from {}: {} {} {:?}",
|
||||
req.version(),
|
||||
client_addr,
|
||||
req.method(),
|
||||
req.uri(),
|
||||
req
|
||||
.headers()
|
||||
.get("user-agent")
|
||||
.map_or_else(|| "<none>", |ua| ua.to_str().unwrap())
|
||||
);
|
||||
// Here we start to handle with server_name
|
||||
// Find backend application for given server_name
|
||||
let (server_name, _port) = if let Ok(v) = parse_host_port(&req, self.tls_enabled) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue