mirror of
https://github.com/Prominence/openweathermap-java-api.git
synced 2026-01-10 20:06:44 +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);
|
logger.error("Invalid URL: ", ex);
|
||||||
throw new IllegalArgumentException(ex);
|
throw new IllegalArgumentException(ex);
|
||||||
}
|
}
|
||||||
|
logger.debug("Executing OpenWeatherMap API request: " + url);
|
||||||
final InputStream requestInputStream = executeRequest(requestUrl);
|
final InputStream requestInputStream = executeRequest(requestUrl);
|
||||||
|
|
||||||
return convertInputStreamToString(requestInputStream);
|
return convertInputStreamToString(requestInputStream);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user