feat: merge https://github.com/google/native-pkcs11/pull/340
This commit is contained in:
@@ -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()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user