diff --git a/src/main/java/graphql/GraphQL.java b/src/main/java/graphql/GraphQL.java index 18d9bbd61f..93fb1096f2 100644 --- a/src/main/java/graphql/GraphQL.java +++ b/src/main/java/graphql/GraphQL.java @@ -57,7 +57,7 @@ public ExecutionResult execute(String requestString, Object context, Map arguments) { assertNotNull(arguments, "arguments can't be null"); - log.info("Executing request. operation name: {}. Request: {} ", operationName, requestString); + log.debug("Executing request. operation name: {}. Request: {} ", operationName, requestString); Parser parser = new Parser(); Document document; try { diff --git a/src/main/java/graphql/execution/ExecutionStrategy.java b/src/main/java/graphql/execution/ExecutionStrategy.java index 882f30f7bd..7aeaf6e285 100644 --- a/src/main/java/graphql/execution/ExecutionStrategy.java +++ b/src/main/java/graphql/execution/ExecutionStrategy.java @@ -39,7 +39,7 @@ protected ExecutionResult resolveField(ExecutionContext executionContext, GraphQ try { resolvedValue = fieldDef.getDataFetcher().get(environment); } catch (Exception e) { - log.info("Exception while fetching data", e); + log.warn("Exception while fetching data", e); executionContext.addError(new ExceptionWhileDataFetching(e)); } diff --git a/src/main/java/graphql/execution/batched/BatchedExecutionStrategy.java b/src/main/java/graphql/execution/batched/BatchedExecutionStrategy.java index 16e40e655d..a4676ed800 100644 --- a/src/main/java/graphql/execution/batched/BatchedExecutionStrategy.java +++ b/src/main/java/graphql/execution/batched/BatchedExecutionStrategy.java @@ -268,7 +268,7 @@ private List fetchData(ExecutionContext executionCont for (int i = 0; i < nodeData.size(); i++) { values.add(null); } - log.info("Exception while fetching data", e); + log.warn("Exception while fetching data", e); executionContext.addError(new ExceptionWhileDataFetching(e)); } assert nodeData.size() == values.size(); diff --git a/src/main/java/graphql/parser/Parser.java b/src/main/java/graphql/parser/Parser.java index cb9d0fcff4..6aed97b204 100644 --- a/src/main/java/graphql/parser/Parser.java +++ b/src/main/java/graphql/parser/Parser.java @@ -12,9 +12,6 @@ public class Parser { - private static final Logger log = LoggerFactory.getLogger(Parser.class); - - public Document parseDocument(String input) { GraphqlLexer lexer = new GraphqlLexer(new ANTLRInputStream(input));