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

Allow client error delegate to have a logger injected #654

Merged
merged 1 commit into from
Dec 11, 2019

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Dec 11, 2019

Motivation:

When errors are logged it's useful to have some contextual information.
We can enable this by injecting a logger into the error delegate.

Modifications:

Change the API for the ClientErrorDelegate to also pass in a logger.
Remove additional logging from next to the call to the delegate.

Result:

Users can log errors with more contextual information in the delegate.

Motivation:

When errors are logged it's useful to have some contextual information.
We can enable this by injecting a `logger` into the error delegate.

Modifications:

Change the API for the `ClientErrorDelegate` to also pass in a logger.
Remove additional logging from next to the call to the delegate.

Result:

Users can log errors with more contextual information in the delegate.
@glbrntt glbrntt requested a review from MrMage December 11, 2019 12:06
@glbrntt glbrntt merged commit 58762ba into grpc:nio Dec 11, 2019
@glbrntt glbrntt deleted the gb-client-delegate branch December 11, 2019 16:11
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