Log built-in rejections (#1890)

This commit is contained in:
David Pedersen
2023-04-11 16:57:49 +02:00
committed by GitHub
parent 2c2cf361dd
commit 6b106f4bab
18 changed files with 329 additions and 192 deletions
+5
View File
@@ -250,6 +250,11 @@ impl MultipartError {
/// Get the response body text used for this rejection.
pub fn body_text(&self) -> String {
axum_core::__log_rejection!(
rejection_type = Self,
body_text = self.body_text(),
status = self.status(),
);
self.source.to_string()
}