From: Julien Lancelot Date: Thu, 16 Oct 2014 09:21:30 +0000 (+0200) Subject: Fix SearchClient to display exception detail on error X-Git-Tag: 4.5.1-RC1~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6541635733c140e7e6cfa0fb4f454cefe98de1fd;p=sonarqube.git Fix SearchClient to display exception detail on error --- 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 77a3a09fe6e..0b0b65f9e21 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 @@ -100,7 +100,7 @@ public class SearchClient extends TransportClient implements Startable { } return response; } catch (Exception e) { - LOGGER.error("could not execute request: {}", request); + LOGGER.error(String.format("could not execute request: %s", request), e); throw new IllegalStateException("ES error: ", e); } }