Skip to content

Conversation

@jcjones
Copy link

@jcjones jcjones commented Dec 1, 2025

This change pulls in the log facade with its key-value feature,
and then uses inspect_err before each call to map_err (and
is_ok) to get the errors surfaced, should a user want to see
them.

I chose warn! for most of the errors, and debug! primarily
for construction/generation tasks, where failures may be less
surprising. I'm not committed to any of the levels, and happy
to remove any that you think aren't useful.

This change pulls in the log facade with its key-value feature,
and then uses `inspect_err` before each call to `map_err` (and
`is_ok`) to get the errors surfaced, should a user want to see
them.

I chose `warn!` for most of the errors, and `debug!` primarily
for construction/generation tasks, where failures may be less
surprising. I'm not committed to any of the levels, and happy
to remove any that you think aren't useful.
@jcjones jcjones marked this pull request as ready for review December 1, 2025 22:40
@raphaelrobert raphaelrobert linked an issue Dec 4, 2025 that may be closed by this pull request
@raphaelrobert
Copy link
Owner

raphaelrobert commented Dec 4, 2025

Thanks! This will need to be rebased on #44 and the CI is also not happy. Otherwise it looks good.

EDIT: The fix for the CI is here: jedisct1/rust-blind-rsa-signatures#11

@jcjones
Copy link
Author

jcjones commented Dec 5, 2025

I left all the logging as-is on first review, but given the changes from #44 I could see cutting out many of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wrap blind_rsa_signature's errors in RedeemTokenError

2 participants