liuml07 commented on code in PR #106:
URL: 
https://github.com/apache/flink-connector-elasticsearch/pull/106#discussion_r1626901218


##########
flink-connector-elasticsearch8/src/main/java/org/apache/flink/connector/elasticsearch/sink/Elasticsearch8AsyncWriter.java:
##########
@@ -102,13 +103,15 @@ public Elasticsearch8AsyncWriter(
         final SinkWriterMetricGroup metricGroup = context.metricGroup();
         checkNotNull(metricGroup);
 
+        this.numRecordsSendCounter = metricGroup.getNumRecordsSendCounter();
         this.numRecordsOutErrorsCounter = 
metricGroup.getNumRecordsOutErrorsCounter();
     }
 
     @Override
     protected void submitRequestEntries(
             List<Operation> requestEntries, Consumer<List<Operation>> 
requestResult) {
-        LOG.debug("submitRequestEntries with {} items", requestEntries.size());
+        LOG.info("submitRequestEntries with {} items", requestEntries.size());

Review Comment:
   Understood. Though this gets called for a batch of entries, it might get 
many of this successful log message that are less useful. We can get this back 
to debug level; so it's more like "no-logs-is-good-logs". Or do you think it's 
a valid idea to print successful message at a frequency, so it's still 
explicitly reporting progress?



-- 
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