Use Display not Debug for error message
This commit is contained in:
parent
09df210c17
commit
ee4c0a0275
1 changed files with 2 additions and 2 deletions
|
@ -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)))
|
||||||
|
|
Loading…
Reference in a new issue