mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 00:03:08 +00:00
fix: trace errors body
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user