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
|
ActiveMQJournalLogger.LOGGER.initializingJdbcDataSource(dataSourceClassName, dataSourceProperties
|
||||||
.keySet()
|
.keySet()
|
||||||
.stream()
|
.stream()
|
||||||
.map(key -> key + "=" + dataSourceProperties.get(key))
|
.map(key -> key + "=" + (key.equalsIgnoreCase("password") ? "****" : dataSourceProperties.get(key)))
|
||||||
.collect(Collectors.joining(", ", "{", "}")));
|
.collect(Collectors.joining(", ", "{", "}")));
|
||||||
try {
|
try {
|
||||||
DataSource dataSource = (DataSource) Class.forName(dataSourceClassName).newInstance();
|
DataSource dataSource = (DataSource) Class.forName(dataSourceClassName).newInstance();
|
||||||
|
|
Loading…
Reference in New Issue