Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add escrow error output to logging #113

Conversation

danhutchings
Copy link
Contributor

When inspecting logs from Crypt, sometimes admins may see:

ERROR: Key escrow unsuccessful

This is a helpful message, but it only explains half of the story. It would be helpful to log the reason why the key escrow was unsuccessful. This PR adds the captured error value to the Crypt log(s). The goal of merging this PR would be to provide Crypt administrators broader knowledge about when and why key escrows could fail.

@grahamgilbert
Copy link
Owner

Do you have any example log output from this change?

@danhutchings
Copy link
Contributor Author

Yes indeed I do:

2023-04-14 12:11:38 AM - ERROR: Key escrow unsuccessful. Reason: curl: (28) Failed to connect to cryptserver port 443 after 151232 ms: Couldn't connect to server

@danhutchings
Copy link
Contributor Author

hey @grahamgilbert! any thoughts on this one? thank you for your review!

@grahamgilbert grahamgilbert merged commit e0d5898 into grahamgilbert:master Apr 22, 2023
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.

2 participants