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:
Luca Frosini 2017-04-13 09:56:28 +00:00
parent b16e6cf039
commit 4a984521f3
1 changed files with 2 additions and 5 deletions

View File

@ -213,12 +213,9 @@ public class HTTPCall {
HttpURLConnection connection = getConnection(path, urlParameters, method, body);
int responseCode = connection.getResponseCode();
logger.info("{} {} : {}",
method, connection.getURL(), responseCode);
String responseMessage = connection.getResponseMessage();
logger.debug("Response Message {}", responseMessage);
logger.info("{} {} : {} - {}",
method, connection.getURL(), responseCode, responseMessage);
if(method == HTTPMETHOD.HEAD){
if(responseCode == HttpURLConnection.HTTP_NO_CONTENT){
return null;