]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5666 Do not return E/S response in FULL profiling level
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 3 Oct 2014 09:12:13 +0000 (11:12 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Fri, 3 Oct 2014 09:43:05 +0000 (11:43 +0200)
server/sonar-server/src/main/java/org/sonar/server/search/SearchClient.java

index a8bdc5e9b2066a3a7f1a3525155004860778a7ff..b12b38a6ae1c585897a0ca802f66de0ddc85d7a9 100644 (file)
@@ -98,18 +98,6 @@ 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: " + request);