Improve tracing of request error responses.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-31 13:30:31 +00:00
parent 6742e1d206
commit e6f1b98d6a
4 changed files with 19 additions and 9 deletions

View File

@@ -1,3 +1,5 @@
use std::fmt::Debug;
use axum::{
Router,
extract::FromRequestParts,
@@ -38,7 +40,7 @@ macro_rules! ruma_handler {
where
Fun: Fn($($tx,)* Ruma<Req>,) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<Req::OutgoingResponse, Err>> + Send,
Req: IncomingRequest + Send + Sync + 'static,
Req: IncomingRequest + Debug + Send + Sync + 'static,
Err: IntoResponse + Send,
<Req as IncomingRequest>::OutgoingResponse: Send,
$( $tx: FromRequestParts<State> + Send + Sync + 'static, )*