mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-03-06 01:10:14 +00:00
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…
x
Reference in New Issue
Block a user