mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-01-09 03:26:45 +03:00
Added logging on requests.
This commit is contained in:
parent
cd8209e677
commit
cba15e6420
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user