Use Display not Debug for error message

This commit is contained in:
xmppftw 2024-08-07 11:12:50 +02:00 committed by Maxime “pep” Buquet
parent 09df210c17
commit ee4c0a0275

View file

@ -31,9 +31,9 @@ use tokio::sync::mpsc::UnboundedSender;
type HmacSha256 = Hmac<Sha256>; type HmacSha256 = Hmac<Sha256>;
fn error_res(e: Error) -> Result<Response<Full<Bytes>>, Infallible> { fn error_res(e: Error) -> Result<Response<Full<Bytes>>, Infallible> {
error!("error response: {:?}", e); error!("error response: {e}");
let text = format!("{:?}", e); let text = format!("{}", e);
let res = Response::builder() let res = Response::builder()
.status(e.status()) .status(e.status())
.body(Full::new(Bytes::from(text))) .body(Full::new(Bytes::from(text)))