parallaxsecond / rust-cryptoki

Rust wrapper for the PKCS #11 API, Cryptoki
https://docs.rs/cryptoki/
Apache License 2.0
77 stars 61 forks source link

Add function name to errors and logs #147

Closed ionut-arm closed 10 months ago

ionut-arm commented 1 year ago

Adding the name of the function that lead to a backend error to the log messages it generates and to the error returned to the client.

cc @ellerh

wiktor-k commented 1 year ago

@ionut-arm it seems this is largely OK to merge (after fixing conflicts). Is there anything else you'd like to add to it?

ionut-arm commented 1 year ago

@ionut-arm it seems this is largely OK to merge (after fixing conflicts). Is there anything else you'd like to add to it?

Ok, I've incorporated your feedback, I don't think I can easily avoid breaking the interface since we rely on enums for errors..