From cba15e64205e62e2522986ffab34579c61c51a4e Mon Sep 17 00:00:00 2001 From: Alexey Zinchenko Date: Fri, 26 Mar 2021 00:56:19 +0300 Subject: [PATCH] Added logging on requests. --- .../github/prominence/openweathermap/api/utils/RequestUtils.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/github/prominence/openweathermap/api/utils/RequestUtils.java b/src/main/java/com/github/prominence/openweathermap/api/utils/RequestUtils.java index 552b724..ea8cfe5 100644 --- a/src/main/java/com/github/prominence/openweathermap/api/utils/RequestUtils.java +++ b/src/main/java/com/github/prominence/openweathermap/api/utils/RequestUtils.java @@ -61,6 +61,7 @@ public final class RequestUtils { logger.error("Invalid URL: ", ex); throw new IllegalArgumentException(ex); } + logger.debug("Executing OpenWeatherMap API request: " + url); final InputStream requestInputStream = executeRequest(requestUrl); return convertInputStreamToString(requestInputStream);