[
https://issues.apache.org/jira/browse/KAFKA-2939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854401#comment-17854401
]
Ksolves commented on KAFKA-2939:
--------------------------------
We already use INFO level logging for unused configurations in the
`AbstractConfig.logUnused()` method. This logging behavior can also be enabled
via the `log4j.properties` file. Only by setting the logging level to INFO,
users can ensure that unused configurations are logged.
Example configuration in log4j.properties:
`log4j.logger.org.apache.kafka=INFO`
Do we need to add another property (flag) so that it'll only log if the
property is enabled and the log type is INFO?
> Make AbstractConfig.logUnused() tunable for clients
> ---------------------------------------------------
>
> Key: KAFKA-2939
> URL: https://issues.apache.org/jira/browse/KAFKA-2939
> Project: Kafka
> Issue Type: Improvement
> Components: config
> Reporter: Guozhang Wang
> Priority: Major
> Labels: newbie
>
> Today we always log unused configs in KafkaProducer / KafkaConsumer in their
> constructors, however for some cases like Kafka Streams that make use of
> these clients, other configs may be passed in to configure Partitioner /
> Serializer classes, etc. So it would be better to make this function call
> optional to avoid printing unnecessary and confusing WARN entries.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)