mirror of
https://github.com/tokio-rs/axum.git
synced 2026-08-29 00:00:18 +02:00
Log built-in rejections (#1890)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user