mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 08:02:40 +00:00
fix: trace errors body
This commit is contained in:
@@ -62,7 +62,7 @@ impl IntoResponse for Error {
|
||||
Self::SqlErr(_) | Self::BadRequest(_) => StatusCode::BAD_REQUEST,
|
||||
_ => StatusCode::INTERNAL_SERVER_ERROR,
|
||||
};
|
||||
tracing::error!("status: {status}, error: {body:?}");
|
||||
tracing::error!(status = %status, error = %e, kind = "error");
|
||||
Response::builder().status(status).body(body).unwrap()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user