mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +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 method = info.method().to_string();
|
||||
|
||||
if status == StatusCode::OK
|
||||
|| status == StatusCode::NOT_FOUND
|
||||
|| status == StatusCode::PARTIAL_CONTENT
|
||||
{
|
||||
if status.is_success() {
|
||||
debug!(
|
||||
elapsed_ms = %elapsed,
|
||||
status = %status,
|
||||
|
||||
Reference in New Issue
Block a user