From 4a984521f351d6d3bc6ecd7311e05b5e4962ee56 Mon Sep 17 00:00:00 2001 From: "luca.frosini" Date: Thu, 13 Apr 2017 09:56:28 +0000 Subject: [PATCH] Fixed log git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry-api@146841 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../resourceregistry/api/rest/httputils/HTTPCall.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/httputils/HTTPCall.java b/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/httputils/HTTPCall.java index e8face5..16e51c8 100644 --- a/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/httputils/HTTPCall.java +++ b/src/main/java/org/gcube/informationsystem/resourceregistry/api/rest/httputils/HTTPCall.java @@ -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;