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

log error message and source address in handshake error #567

Merged
merged 1 commit into from
Feb 24, 2016

Conversation

pquerna
Copy link
Contributor

@pquerna pquerna commented Feb 23, 2016

I'm using gRPC with TLS Certificate Authentication. The default log messages are very hard to understand what went wrong. Currently, you get:

2016/02/23 11:01:59 grpc: Server.Serve failed to complete security handshake.

This PR changes the logged message to something like this:

2016/02/23 11:08:57 grpc: Server.Serve failed to complete security handshake from "127.0.0.1:49423": tls: failed to verify client's certificate: x509: certificate signed by unknown authority

Improving the interface with Context (#547) is nice and I would love structed logging (#289), today it is very difficult to debug basic TLS client authentication issues -- all the client sees is a TLS alert for bad certificate in this case, so having the server log anything more is very helpful.

iamqizhao added a commit that referenced this pull request Feb 24, 2016
log error message and source address in handshake error
@iamqizhao iamqizhao merged commit 3657de1 into grpc:master Feb 24, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants