KevinZTW commented on code in PR #15473:
URL: https://github.com/apache/kafka/pull/15473#discussion_r1512669605


##########
connect/runtime/src/main/java/org/apache/kafka/connect/runtime/ConnectMetrics.java:
##########
@@ -431,6 +432,7 @@ public interface LiteralSupplier<T> {
      * @param args the arguments
      */
     public static void main(String[] args) {
+        LogManager.shutdown();

Review Comment:
   Since the log information is generated by the Metric class, another way I 
found is to add `log4j.logger.org.apache.kafka.common.metrics.Metrics=WARN` to 
the `/kafka/connect/runtime/src/test/resources/log4j.properties`. 
   
   However, this way also affects the log behavior during the test execution so 
I think only close the log in main function is a better way.
   



-- 
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: jira-unsubscr...@kafka.apache.org

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

Reply via email to