eolivelli opened a new pull request #10130:
URL: https://github.com/apache/pulsar/pull/10130


   ### Motivation
   When you create and close a consumer or a producer on the Broker logs you 
will see duplicated messages like:
   ```
   12:48:27.177 [ForkJoinPool.commonPool-worker-1] INFO  
org.apache.pulsar.broker.service.ServerCnx - [/10.244.3.6:35520] Created new 
producer: 
Producer{topic=PersistentTopic{topic=persistent://public/default/test-partition-174},
 client=/10.244.3.6:35520, producerName=pulsar-0-869, producerId=174}
   12:48:27.177 [ForkJoinPool.commonPool-worker-1] INFO  
org.apache.pulsar.broker.service.ServerCnx - [/10.244.3.6:35520] 
persistent://public/default/test-partition-175 configured with schema false
   ```
   
   Those logs are at "info" level.
   For systems that index the logs and have many consumers/producers that are 
connecting/disconnecting this amount of logs is a cost that we could save.
   
   ### Modifications
   Switch to "debug" level some log lines that are redundant. The log lines 
switched to "debug" level are only on the happy path, we are not losing 
important information in case of errors.
   
   
   ### Verifying this change
   This change is a trivial rework / code cleanup without any test coverage.
   


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


Reply via email to