ChrisSamo632 commented on code in PR #6712:
URL: https://github.com/apache/nifi/pull/6712#discussion_r1030835765


##########
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-processors/src/main/java/org/apache/nifi/processors/elasticsearch/ScrollElasticsearchHttp.java:
##########
@@ -344,7 +346,9 @@ private void getPage(final Response getResponse, final URL 
url, final ProcessCon
                 }
             }
             builder.append("] }");
-            logger.debug("Elasticsearch retrieved " + responseJson.size() + " 
documents, routing to success");
+            if (logger.isDebugEnabled()) {
+                logger.debug("Elasticsearch retrieved " + responseJson.size() 
+ " documents, routing to success");

Review Comment:
   ```suggestion
                   logger.debug("Elasticsearch retrieved {} documents, routing 
to success", responseJson.size());
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to