Skip to content

Commit 20f220f

Browse files
committed
Add response logging to the async execute
1 parent e20aad5 commit 20f220f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

client/implementation-vertx/src/main/java/io/smallrye/graphql/client/vertx/typesafe/VertxTypesafeGraphQLClientProxy.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ private Uni<Object> executeSingleResultOperationOverHttpAsync(MethodInvocation m
200200

201201
return ready
202202
.chain(() -> Uni.createFrom().completionStage(postAsync(request.toString(), attemptHeaders)))
203+
.invoke(response -> {
204+
if (log.isTraceEnabled() && response != null) {
205+
log.tracef("response graphql: %s", response.bodyAsString());
206+
}
207+
})
203208
.map(response -> new ResultBuilder(
204209
method,
205210
response.bodyAsString(),

0 commit comments

Comments
 (0)