From 022338624380c31d241dadbb4200854a0a1539d3 Mon Sep 17 00:00:00 2001 From: strawberry Date: Wed, 1 May 2024 14:30:20 -0400 Subject: [PATCH] remove this unnecessary log, use debug_warn Signed-off-by: strawberry --- src/api/ruma_wrapper/axum.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/ruma_wrapper/axum.rs b/src/api/ruma_wrapper/axum.rs index f1df87b6..5443cc5f 100644 --- a/src/api/ruma_wrapper/axum.rs +++ b/src/api/ruma_wrapper/axum.rs @@ -26,7 +26,7 @@ use serde::Deserialize; use tracing::{debug, error, trace, warn}; use super::{Ruma, RumaResponse}; -use crate::{service::appservice::RegistrationInfo, services, Error, Result}; +use crate::{debug_warn, service::appservice::RegistrationInfo, services, Error, Result}; enum Token { Appservice(Box), @@ -317,8 +317,8 @@ where trace!("{:?} {:?} {:?}", http_request.method(), http_request.uri(), json_body); let body = T::try_from_http_request(http_request, &path_params).map_err(|e| { - warn!("try_from_http_request failed: {e:?}\nPath parameters: {path_params:?}",); - debug!("JSON body: {:?}", json_body); + warn!("try_from_http_request failed: {e:?}",); + debug_warn!("JSON body: {:?}", json_body); Error::BadRequest(ErrorKind::BadJson, "Failed to deserialize request.") })?;