Fixed log
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-api@146841 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b16e6cf039
commit
4a984521f3
|
@ -213,12 +213,9 @@ public class HTTPCall {
|
||||||
HttpURLConnection connection = getConnection(path, urlParameters, method, body);
|
HttpURLConnection connection = getConnection(path, urlParameters, method, body);
|
||||||
|
|
||||||
int responseCode = connection.getResponseCode();
|
int responseCode = connection.getResponseCode();
|
||||||
logger.info("{} {} : {}",
|
|
||||||
method, connection.getURL(), responseCode);
|
|
||||||
|
|
||||||
String responseMessage = connection.getResponseMessage();
|
String responseMessage = connection.getResponseMessage();
|
||||||
logger.debug("Response Message {}", responseMessage);
|
logger.info("{} {} : {} - {}",
|
||||||
|
method, connection.getURL(), responseCode, responseMessage);
|
||||||
if(method == HTTPMETHOD.HEAD){
|
if(method == HTTPMETHOD.HEAD){
|
||||||
if(responseCode == HttpURLConnection.HTTP_NO_CONTENT){
|
if(responseCode == HttpURLConnection.HTTP_NO_CONTENT){
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue