Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit c484691

Browse files
committed
fix(#611): allow exception handlers to be disabled
1 parent 4c540a2 commit c484691

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graphql-kickstart-spring-support/src/main/java/graphql/kickstart/spring/error/GraphQLErrorHandlerFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public GraphQLErrorHandler create(
2727
.flatMap(List::stream)
2828
.collect(toList());
2929

30-
if (!factories.isEmpty() || exceptionHandlersEnabled) {
30+
if (exceptionHandlersEnabled) {
3131
log.debug(
3232
"Handle GraphQL errors using exception handlers defined in {} custom factories",
3333
factories.size());
@@ -43,7 +43,7 @@ private List<GraphQLErrorFactory> scanForExceptionHandlers(
4343
try {
4444
Class<?> objClz = context.getType(name);
4545
if (objClz == null) {
46-
log.info("Cannot load class " + name);
46+
log.info("Cannot load class {}", name);
4747
return emptyList();
4848
}
4949
return Arrays.stream(objClz.getDeclaredMethods())

0 commit comments

Comments
 (0)