Add rejection tracing to all extractors (#2584)

This commit is contained in:
David Mládek
2024-03-16 22:34:18 +01:00
committed by GitHub
parent 2ce382f0ab
commit 2ec68d6c4d
8 changed files with 46 additions and 18 deletions
+7 -1
View File
@@ -379,7 +379,13 @@ pub struct InvalidBoundary;
impl IntoResponse for InvalidBoundary {
fn into_response(self) -> Response {
(self.status(), self.body_text()).into_response()
let body = self.body_text();
axum_core::__log_rejection!(
rejection_type = Self,
body_text = body,
status = self.status(),
);
(self.status(), body).into_response()
}
}