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


##########
nifi-nar-bundles/nifi-elasticsearch-bundle/nifi-elasticsearch-restapi-processors/src/main/java/org/apache/nifi/processors/elasticsearch/AbstractPutElasticsearch.java:
##########
@@ -165,7 +165,7 @@ void logElasticsearchDocumentErrors(final 
IndexOperationResponse response) throw
 
             if (logErrors) {
                 getLogger().error(output);
-            } else {
+            } else if (getLogger().isDebugEnabled()) {

Review Comment:
   Aside from the conditional `isDebugEnabled()` in the service implementation 
that logs the HTTP entity, this is the only other conditional that seems 
necessary.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to