Commits

Ruwan Linton committed 2cc51f1

Adding more information to elastic search reporting debug logs

Comments (0)

Files changed (1)

modules/core/src/main/java/org/adroitlogic/ultraesb/stats/ElasticSearchStatisticsPublisher.java

     @Override
     public void publish(final MessageStatistics messageStatistics) {
         try {
-            logger.debug("Reporting message to elastic search : {}", messageStatistics.toMap());
+            logger.debug("Reporting message to elastic search at {} : {}", client.connectedNodes(), messageStatistics.toMap());
             client.prepareIndex("ultraesb", "message", messageStatistics.getId()).setSource(
                     messageStatistics.toMap()).execute();
         } catch (Exception e) {