Skip to content

Commit 4b533de

Browse files
committed
fix(service): Use display impl for logging values
1 parent 9730106 commit 4b533de

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

crates/service/src/middleware/attestation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl StatusCodeExt for AttestationError {
9898

9999
impl IntoResponse for AttestationError {
100100
fn into_response(self) -> Response {
101-
tracing::error!(error=self, "Attestation error");
101+
tracing::error!(error=%self, "Attestation error");
102102
let status_code = self.status_code();
103103
ErrorResponse::new(self).into_response(status_code)
104104
}

crates/service/src/middleware/attestation_signer.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ pub async fn signer_middleware(
3232
request.extensions_mut().insert(signer.clone());
3333
} else {
3434
// Just log this case which is silently passed through next middleware
35-
tracing::warn!(
36-
allocation_id,
35+
tracing::warn!(warn=%allocation_id,
3736
"No attestation signer found for allocation",
3837
);
3938
}

0 commit comments

Comments
 (0)