Skip to content

Commit

Permalink
do log.debug() only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryazgin authored and Bryazgin committed Apr 22, 2024
1 parent 48d2f60 commit 1139517
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,7 @@ CompletableFuture<ResponseEntity<String>> postGraphQL(HttpEntity<String> 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());
}

/*
Expand Down

0 comments on commit 1139517

Please sign in to comment.