Skip to content

Commit

Permalink
info -> trace
Browse files Browse the repository at this point in the history
  • Loading branch information
janolaveide committed Feb 11, 2021
1 parent 160aea9 commit ddb7d23
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,15 @@ public <T extends GraphQLResult<?>> T query(GraphQLOperationRequest q, GraphQLRe

private <T extends GraphQLResult<?>> T query(GraphQLRequest req, Class<T> clazz) {
try {
LOG.info("Henter resultat for {} fra {}", clazz.getName(), endpoint);
LOG.trace("Henter resultat for {} fra {}", clazz.getName(), endpoint);
var res = client.target(endpoint)
.request(APPLICATION_JSON_TYPE)
.buildPost(json(req.toHttpJsonBody()))
.invoke(clazz);
if (res.hasErrors()) {
return errorHandler.handleError(res.getErrors(), endpoint, PDL_ERROR_RESPONSE);
}
LOG.info("Hentet resultat for {} fra {} OK", clazz.getName(), endpoint);
LOG.trace("Hentet resultat for {} fra {} OK", clazz.getName(), endpoint);
return res;
} catch (ProcessingException e) {
if (e.getCause() != null && e.getCause() instanceof VLException) {
Expand Down

0 comments on commit ddb7d23

Please sign in to comment.