ARTEMIS-3176 don't log JDBC datasource 'password' property
This commit is contained in:
parent
0cb7650693
commit
9bdd271092
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue