aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-06 16:26:13 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2014-10-06 16:29:17 +0200
commita7759525b2fa400ec5b89b63a8786ea912b9e8a7 (patch)
treec39bb37b85d38039e3099ec86fdee391e9cb9d38 /server/sonar-server
parentca7e234b8d36a96a8d42a0e28a99c917cad9a460 (diff)
downloadsonarqube-a7759525b2fa400ec5b89b63a8786ea912b9e8a7.tar.gz
sonarqube-a7759525b2fa400ec5b89b63a8786ea912b9e8a7.zip
SONAR-5697 Remove E/S response and add exception to log
Diffstat (limited to 'server/sonar-server')
-rw-r--r--server/sonar-server/src/main/java/org/sonar/server/search/SearchClient.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/server/sonar-server/src/main/java/org/sonar/server/search/SearchClient.java b/server/sonar-server/src/main/java/org/sonar/server/search/SearchClient.java
index 4c8b26f4bae..3db7c216dde 100644
--- a/server/sonar-server/src/main/java/org/sonar/server/search/SearchClient.java
+++ b/server/sonar-server/src/main/java/org/sonar/server/search/SearchClient.java
@@ -98,21 +98,9 @@ public class SearchClient extends TransportClient implements Startable {
fullProfile.stop("ES Request: %s", request.toString().replaceAll("\n", ""));
}
}
-
- if (profiling.isProfilingEnabled(Profiling.Level.FULL)) {
- if (ToXContent.class.isAssignableFrom(response.getClass())) {
- XContentBuilder debugResponse = XContentFactory.jsonBuilder();
- debugResponse.startObject();
- ((ToXContent) response).toXContent(debugResponse, ToXContent.EMPTY_PARAMS);
- debugResponse.endObject();
- fullProfile.stop("ES Response: %s", debugResponse.string());
- } else {
- fullProfile.stop("ES Response: %s", response.toString());
- }
- }
return response;
} catch (Exception e) {
- LOGGER.error("could not execute request: " + response);
+ LOGGER.error("could not execute request: " + response, e);
throw new IllegalStateException("ES error: ", e);
}
}