DBZ-6908 Print password as stars

This commit is contained in:
eizners 2023-09-14 15:58:16 -04:00 committed by Jiri Pechanec
parent d83139a54a
commit 278c4f5847

View File

@ -104,7 +104,8 @@ public class RedisCommonConfig {
public RedisCommonConfig(Configuration config, String prefix) {
config = config.subset(prefix, true);
LOGGER.info("Configuration for '{}' with prefix '{}': {}", getClass().getSimpleName(), prefix, config.asMap());
LOGGER.info("Configuration for '{}' with prefix '{}': {}", getClass().getSimpleName(), prefix, config.withMaskedPasswords());
if (!config.validateAndRecord(getAllConfigurationFields(), error -> LOGGER.error("Validation error for property with prefix '{}': {}", prefix, error))) {
throw new DebeziumException(
String.format("Error configuring an instance of '%s' with prefix '%s'; check the logs for errors", getClass().getSimpleName(), prefix));