Skip to content

Commit

Permalink
Change log-levels to more appropriate setting.
Browse files Browse the repository at this point in the history
  • Loading branch information
aschrijver authored and dminkovsky committed Oct 24, 2016
1 parent 2b5789c commit 1c48422
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/graphql/GraphQL.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public ExecutionResult execute(String requestString, Object context, Map<String,

public ExecutionResult execute(String requestString, String operationName, Object context, Map<String, Object> 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 {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/graphql/execution/ExecutionStrategy.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private List<GraphQLExecutionNodeValue> 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();
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/graphql/parser/Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 1c48422

Please sign in to comment.