From c2ec00b58e8cb22680f928d0300f41d5770c6896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Wed, 3 Jan 2024 15:03:33 +0100 Subject: [PATCH] Fix error logging --- pkcs11/src/backend/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkcs11/src/backend/mod.rs b/pkcs11/src/backend/mod.rs index 39725a54..9efda2b4 100644 --- a/pkcs11/src/backend/mod.rs +++ b/pkcs11/src/backend/mod.rs @@ -51,7 +51,7 @@ impl From> for ApiError { apis::Error::ResponseError(resp) => ApiError::ResponseError(ResponseContent { status: resp.status, content: String::from_utf8(resp.content).unwrap_or_else(|e| { - format!( + error!( "Unable to parse response content into string: {:?}", e.as_bytes() );