diff --git a/src/main/java/org/folio/circulation/support/http/server/WebContext.java b/src/main/java/org/folio/circulation/support/http/server/WebContext.java index a38173b438..427fc4bcda 100644 --- a/src/main/java/org/folio/circulation/support/http/server/WebContext.java +++ b/src/main/java/org/folio/circulation/support/http/server/WebContext.java @@ -18,7 +18,9 @@ import io.vertx.core.http.HttpClient; import io.vertx.ext.web.RoutingContext; +import lombok.extern.log4j.Log4j2; +@Log4j2 public class WebContext { private final RoutingContext routingContext; @@ -100,6 +102,8 @@ public void writeResultToHttpResponse(Result result) { public Map getHeaders() { return routingContext.request().headers().entries().stream() - .collect(toMap(entry -> entry.getKey().toLowerCase(), Map.Entry::getValue)); + .peek(entry -> log.info(String.format("%s %s", entry.getKey(), entry.getValue()))) + .collect(toMap(entry -> entry.getKey().toLowerCase(), Map.Entry::getValue, + (val1, val2) -> val1)); } }