fvaleri commented on a change in pull request #193:
URL: 
https://github.com/apache/camel-kafka-connector/pull/193#discussion_r421331468



##########
File path: core/src/main/java/org/apache/camel/kafkaconnector/CamelSinkTask.java
##########
@@ -122,7 +122,14 @@ public void put(Collection<SinkRecord> sinkRecords) {
             }
             exchange.getMessage().setHeaders(headers);
             exchange.getMessage().setBody(record.value());
-            LOG.debug("Sending {} to {}", exchange, LOCAL_URL);
+
+            if (LOG.isDebugEnabled()) {
+                LOG.debug("Sending exchange {} to {}", 
exchange.getExchangeId(), LOCAL_URL);
+            }
+            if 
(config.getBoolean(CamelSinkConnectorConfig.CAMEL_SINK_LOG_PAYLOAD_CONF)) {
+                LOG.info(TaskHelper.getExchangePayload(exchange));

Review comment:
       Now log is on ConnectRecord, rather than Camel Exchange.




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

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


Reply via email to