DBZ-7366 use withMaskedPasswords()

This commit is contained in:
V K 2024-01-19 01:09:37 +01:00 committed by Jiri Pechanec
parent 151b7bc8aa
commit 738f2f8788

View File

@ -45,7 +45,7 @@ public class JdbcCommonConfig {
public JdbcCommonConfig(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().asMap());
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));