fix log message
This commit is contained in:
parent
76cf7a38b5
commit
22a4896693
2 changed files with 13 additions and 3 deletions
|
|
@ -41,8 +41,8 @@ where
|
||||||
.await
|
.await
|
||||||
.map_err(|e| anyhow!("HTTP/3 accept failed: {}", e))?
|
.map_err(|e| anyhow!("HTTP/3 accept failed: {}", e))?
|
||||||
{
|
{
|
||||||
info!(
|
debug!(
|
||||||
"HTTP/3 new request received from {}: {}, {}",
|
"HTTP/3 new request from {}: {} {}",
|
||||||
client_addr,
|
client_addr,
|
||||||
req.method(),
|
req.method(),
|
||||||
req.uri()
|
req.uri()
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,17 @@ where
|
||||||
mut req: Request<Body>,
|
mut req: Request<Body>,
|
||||||
client_addr: SocketAddr, // アクセス制御用
|
client_addr: SocketAddr, // アクセス制御用
|
||||||
) -> Result<Response<Body>> {
|
) -> 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
|
// Here we start to handle with server_name
|
||||||
// Find backend application for given server_name
|
// Find backend application for given server_name
|
||||||
let (server_name, _port) = if let Ok(v) = parse_host_port(&req, self.tls_enabled) {
|
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