From 6541635733c140e7e6cfa0fb4f454cefe98de1fd Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Thu, 16 Oct 2014 11:21:30 +0200 Subject: [PATCH] Fix SearchClient to display exception detail on error --- .../src/main/java/org/sonar/server/search/SearchClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- 2.39.5