Include request path in rate limit and 4xx limit warning logs

#32
This commit is contained in:
Ara Sadoyan
2026-05-27 16:15:55 +02:00
parent 9339a142a6
commit ea779182f2

View File

@@ -104,7 +104,7 @@ impl ProxyHttp for LB {
session.set_keepalive(None); session.set_keepalive(None);
session.write_response_header(Box::new(header), true).await?; session.write_response_header(Box::new(header), true).await?;
if let (Some(oi), Some(oa)) = (&_ctx.hostname, rate_key) { if let (Some(oi), Some(oa)) = (&_ctx.hostname, rate_key) {
warn!("Limit 4XX: {}-rps exceed on {} from {}", rate, oi, oa); warn!("Limit 4XX: {}-rps exceed on {} from {} path {}", rate, oi, oa, session.req_header().uri.path());
} }
return Ok(true); return Ok(true);
} }