ARTEMIS-3176 don't log JDBC datasource 'password' property

This commit is contained in:
Justin Bertram 2021-03-11 10:57:23 -06:00
parent 0cb7650693
commit 9bdd271092
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ public class JDBCDataSourceUtils {
ActiveMQJournalLogger.LOGGER.initializingJdbcDataSource(dataSourceClassName, dataSourceProperties
.keySet()
.stream()
.map(key -> key + "=" + dataSourceProperties.get(key))
.map(key -> key + "=" + (key.equalsIgnoreCase("password") ? "****" : dataSourceProperties.get(key)))
.collect(Collectors.joining(", ", "{", "}")));
try {
DataSource dataSource = (DataSource) Class.forName(dataSourceClassName).newInstance();