freeznet opened a new pull request, #24128:
URL: https://github.com/apache/pulsar/pull/24128

   ### Motivation
   
   The current Kafka connector logging outputs the entire properties object, 
which adds unnecessary log lines. This PR improves logging for Kafka connectors 
by specifically logging the bootstrap server information rather than dumping 
all properties, enhancing readability and focusing on the most relevant 
connection detail. Users can continue to retrieve connector state information 
using Admin API when needed.
   
   ### Modifications
   
   - Changed log statements in Kafka connector classes to only output bootstrap 
server information instead of full properties
   - Updated logging in the following files:
     - `KafkaConnectSink.java`
     - `KafkaAbstractSink.java`
     - `KafkaBytesSink.java`
     - `KafkaBytesSource.java`
   - Used the `getOrDefault` method to extract bootstrap server information 
from properties with fallback handling
   
   ### Verifying this change
   
   - [x] Make sure that the change passes the CI checks.
   
   This change is a trivial rework / code cleanup without any test coverage. 
The modifications only affect log output formatting and don't change any 
functional behavior, so no additional tests are required.
   
   ### Documentation
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->


-- 
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: commits-unsubscr...@pulsar.apache.org

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

Reply via email to