]> source.dussan.org Git - sonarqube.git/commitdiff
Fix SearchClient to display exception detail on error
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 16 Oct 2014 09:21:30 +0000 (11:21 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Thu, 16 Oct 2014 09:21:41 +0000 (11:21 +0200)
server/sonar-server/src/main/java/org/sonar/server/search/SearchClient.java

index 77a3a09fe6e86049a9798a73e8c250bebff5255a..0b0b65f9e2133acce9b9a73d473731b8809d6901 100644 (file)
@@ -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);
     }
   }