mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Refine HTTP status logs (#8098)
Ensure that we don't log a warning for HTTP 202s, which are expected on the blinded block endpoints after Fulu. Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -294,10 +294,7 @@ pub fn tracing_logging() -> warp::filters::log::Log<impl Fn(warp::filters::log::
|
|||||||
let path = info.path();
|
let path = info.path();
|
||||||
let method = info.method().to_string();
|
let method = info.method().to_string();
|
||||||
|
|
||||||
if status == StatusCode::OK
|
if status.is_success() {
|
||||||
|| status == StatusCode::NOT_FOUND
|
|
||||||
|| status == StatusCode::PARTIAL_CONTENT
|
|
||||||
{
|
|
||||||
debug!(
|
debug!(
|
||||||
elapsed_ms = %elapsed,
|
elapsed_ms = %elapsed,
|
||||||
status = %status,
|
status = %status,
|
||||||
|
|||||||
Reference in New Issue
Block a user