Skip to content

Commit

Permalink
Removing the logging of the response content.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Richard committed Apr 30, 2020
1 parent 04a2412 commit d891456
Showing 1 changed file with 0 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
import com.jayway.jsonpath.JsonPath;
import com.synopsys.integration.exception.IntegrationException;
import com.synopsys.integration.log.IntLogger;
import com.synopsys.integration.log.LogLevel;
import com.synopsys.integration.rest.HttpMethod;
import com.synopsys.integration.rest.exception.ApiException;
import com.synopsys.integration.rest.exception.IntegrationRestException;
Expand Down Expand Up @@ -195,17 +194,6 @@ public final void logResponseHeaders(HttpResponse response) {
logHeaders(responseName, response.getAllHeaders());
}

public final void logResponseContent(Response response) {
if (LogLevel.TRACE == logger.getLogLevel()) {
try {
String responseContent = response.getContentString();
logger.trace("Response content : " + responseContent);
} catch (IntegrationException e) {
logger.trace("Could not log the response content. ", e);
}
}
}

private void addBuilderConnectionTimes() {
defaultRequestConfigBuilder.setConnectTimeout(timeoutInSeconds * 1000);
defaultRequestConfigBuilder.setSocketTimeout(timeoutInSeconds * 1000);
Expand Down Expand Up @@ -254,7 +242,6 @@ private Response handleClientExecution(HttpUriRequest request) throws Integratio
CloseableHttpResponse closeableHttpResponse = client.execute(request);
Response response = new Response(request, client, closeableHttpResponse);
logResponseHeaders(closeableHttpResponse);
logResponseContent(response);
if (response.isStatusCodeError()) {
handleErrorResponse(request, response);
}
Expand Down

0 comments on commit d891456

Please sign in to comment.