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:
Philip Nee 2023-02-13 09:27:55 -08:00 committed by GitHub
parent 8cfafba279
commit eee2bf9686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}
}