request url 로그 추가

master
mjkhan21 1 year ago
parent f0c0fa56ad
commit 3352eb3541

@ -187,7 +187,7 @@ public class WebClient {
} }
private <T> HttpResponse<T> handleRequest(boolean async, HttpRequest hreq, HttpResponse.BodyHandler<T> bodyHandler, Consumer<HttpResponse<T>> respHandler) throws Exception { private <T> HttpResponse<T> handleRequest(boolean async, HttpRequest hreq, HttpResponse.BodyHandler<T> bodyHandler, Consumer<HttpResponse<T>> respHandler) throws Exception {
Log.get(getClass()).debug("Sending request"); Log.get(getClass()).debug("Sending request:\n{} {}", hreq.method(), hreq.uri());
if (!async) { if (!async) {
HttpResponse<T> resp = client().send(hreq, bodyHandler); HttpResponse<T> resp = client().send(hreq, bodyHandler);
Log.get(getClass()).debug("Received response"); Log.get(getClass()).debug("Received response");

Loading…
Cancel
Save