mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-07-02 18:56:46 +03:00
Added logging on requests.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user