Skip to content

Conversation

@bsara
Copy link
Contributor

@bsara bsara commented Jun 12, 2019

What was changed?

Separated out logging of errors to separate overriddable method in DefaultGraphQLErrorHandler so that entire processErrors method does not need to be overridden just to change which errors get logged by users of DefaultGraphQLErrorHandler.

Why?

When a user of this library wants to override DefaultGraphQLErrorHandler to create their own but retain the functionality of DefaultGraphQLErrorHandler without copying the code, that user cannot change which errors are logged unless they reimplement the entire processErrors method. This PR separates out the logging of errors into a separate method that can be overridden to prevent the need to reimplement all of processErrors just to change which errors are logged.

…aultGraphQLErrorHandler so that entire processErrors method does not need to be overridden just to change which errors get logged by users of DefaultGraphQLErrorHandler
@oliemansm oliemansm merged commit ee5e869 into graphql-java-kickstart:master Jun 16, 2019
@oliemansm
Copy link
Member

Thanks @bsara!

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