diff --git a/metadata-service/graphql-servlet-impl/src/main/java/com/datahub/graphql/GraphQLController.java b/metadata-service/graphql-servlet-impl/src/main/java/com/datahub/graphql/GraphQLController.java index 85d310883b7380..ce5b906ca8bc2e 100644 --- a/metadata-service/graphql-servlet-impl/src/main/java/com/datahub/graphql/GraphQLController.java +++ b/metadata-service/graphql-servlet-impl/src/main/java/com/datahub/graphql/GraphQLController.java @@ -137,12 +137,7 @@ CompletableFuture> postGraphQL(HttpEntity httpEnt "Errors while executing graphQL query: %s, result: %s, errors: %s", queryJson, executionResult.toSpecification(), executionResult.getErrors())); } else { - if (log.isDebugEnabled()) { - log.debug( - String.format( - "Executed graphQL query: %s, result: %s", - queryJson, executionResult.toSpecification())); - } + log.debug("Executed graphQL query: {}, result: {}", queryJson, () -> executionResult.toSpecification()); } /*