diff --git a/spring-reactive-modules/spring-reactive-client-2/src/main/java/com/baeldung/webclientretrievevsexchange/RetrieveAndExchangeController.java b/spring-reactive-modules/spring-reactive-client-2/src/main/java/com/baeldung/webclientretrievevsexchange/RetrieveAndExchangeController.java index 183c8f4a66..7cac164363 100644 --- a/spring-reactive-modules/spring-reactive-client-2/src/main/java/com/baeldung/webclientretrievevsexchange/RetrieveAndExchangeController.java +++ b/spring-reactive-modules/spring-reactive-client-2/src/main/java/com/baeldung/webclientretrievevsexchange/RetrieveAndExchangeController.java @@ -29,7 +29,7 @@ public class RetrieveAndExchangeController { } @GetMapping("/user-status/{id}") - Mono retrieveOneUserAndHandleErrorBaseOnStatus(@PathVariable int id) { + Mono retrieveOneUserAndHandleErrorBasedOnStatus(@PathVariable int id) { return client.get() .uri("/{id}", id) .retrieve() @@ -76,10 +76,6 @@ public class RetrieveAndExchangeController { .exchangeToMono(res -> { if (res.statusCode() .is2xxSuccessful()) { - logger.info("Status code: " + res.headers() - .asHttpHeaders()); - logger.info("Content-type" + res.headers() - .contentType()); return res.bodyToMono(User.class); } else if (res.statusCode() .is4xxClientError()) {