Skip to main content

log_error_with_client_ip

Function log_error_with_client_ip 

Source
pub async fn log_error_with_client_ip(
    req: Request<Body>,
    next: Next,
) -> Response
Expand description

Middleware that logs HTTP error responses (4xx/5xx) with client IP address.

Extracts client address from [ConnectInfo] if available.