mirror of https://github.com/apache/kafka.git
KAFKA-6793: Unused configuration logging appears to be noisy and unnecessary (#13225)
Warnings about unused configs are most often spurious. This patch changes the current warning to an info message. Reviewers: Chris Egerton <chrise@aiven.io>, Jason Gustafson <jason@confluent.io>
This commit is contained in:
parent
8cfafba279
commit
eee2bf9686
|
@ -18,11 +18,11 @@ package org.apache.kafka.common.config;
|
|||
|
||||
import org.apache.kafka.common.Configurable;
|
||||
import org.apache.kafka.common.KafkaException;
|
||||
import org.apache.kafka.common.config.provider.ConfigProvider;
|
||||
import org.apache.kafka.common.config.types.Password;
|
||||
import org.apache.kafka.common.utils.Utils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.apache.kafka.common.config.provider.ConfigProvider;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
@ -370,12 +370,12 @@ public class AbstractConfig {
|
|||
}
|
||||
|
||||
/**
|
||||
* Log warnings for any unused configurations
|
||||
* Info level log for any unused configurations
|
||||
*/
|
||||
public void logUnused() {
|
||||
Set<String> unusedkeys = unused();
|
||||
if (!unusedkeys.isEmpty()) {
|
||||
log.warn("These configurations '{}' were supplied but are not used yet.", unusedkeys);
|
||||
log.info("These configurations '{}' were supplied but are not used yet.", unusedkeys);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue