Skip to content

Commit

Permalink
Don't log headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mendess committed Oct 18, 2024
1 parent 2b5e141 commit 44d717a
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions crates/daphne-server/src/router/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,20 +111,11 @@ where
req: Request<B>,
next: Next<B>,
) -> impl IntoResponse {
tracing::info!(
method = %req.method(),
uri = %req.uri(),
headers = ?req.headers(),
"received request",
);
tracing::info!(method = %req.method(), uri = %req.uri(), "received request");
let resp = next.run(req).await;
app.server_metrics()
.count_http_status_code(resp.status().as_u16());
tracing::info!(
status_code = %resp.status(),
headers = ?resp.headers(),
"request finished"
);
tracing::info!(status_code = %resp.status(), "request finished");
resp
}

Expand Down

0 comments on commit 44d717a

Please sign in to comment.