Skip to content

Commit 1dbc4f8

Browse files
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 <[email protected]>
1 parent c1fb060 commit 1dbc4f8

File tree

1 file changed

+1
-4
lines changed
  • beacon_node/http_api/src

1 file changed

+1
-4
lines changed

beacon_node/http_api/src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,7 @@ pub fn tracing_logging() -> warp::filters::log::Log<impl Fn(warp::filters::log::
294294
let path = info.path();
295295
let method = info.method().to_string();
296296

297-
if status == StatusCode::OK
298-
|| status == StatusCode::NOT_FOUND
299-
|| status == StatusCode::PARTIAL_CONTENT
300-
{
297+
if status.is_success() {
301298
debug!(
302299
elapsed_ms = %elapsed,
303300
status = %status,

0 commit comments

Comments
 (0)