fix: trace errors body

This commit is contained in:
Ruben Fiszel
2022-07-04 07:58:51 +02:00
parent 95abaaa568
commit 01db9f75fb
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -62,6 +62,7 @@ impl IntoResponse for Error {
Self::SqlErr(_) | Self::BadRequest(_) => StatusCode::BAD_REQUEST,
_ => StatusCode::INTERNAL_SERVER_ERROR,
};
tracing::error!("status: {status}, error: {body:?}");
Response::builder().status(status).body(body).unwrap()
}
}
-1
View File
@@ -650,7 +650,6 @@ pub struct EmailInfo {
}
async fn get_email(http_client: &Client, client_name: &str, token: &str) -> error::Result<String> {
tracing::info!("{token}");
let email = match client_name {
"github" => http_get_user_info::<Vec<GHEmailInfo>>(
http_client,