This commit is contained in:
2024-09-11 21:49:48 +08:00
parent 8c90d04bef
commit e0c736271a

View File

@@ -68,7 +68,12 @@ where
match f() { match f() {
Ok(()) => CKR_OK, Ok(()) => CKR_OK,
Err(e) => { Err(e) => {
tracing::error!(%e); match e {
// Some PKCS #11 return values indicate routine conditions that
// should not be logged at the default log level.
Error::AttributeTypeInvalid(_) => tracing::debug!(%e),
_ => tracing::error!(%e),
}
e.into() e.into()
} }
} }