Skip to content

Commit

Permalink
Merge pull request #9596 from barreiro/master
Browse files Browse the repository at this point in the history
Do not show info message on datasource startup
  • Loading branch information
gsmet authored May 26, 2020
2 parents 68f5be3 + 6011c7c commit bb22134
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.sql.Connection;
import java.sql.Driver;
import java.sql.Statement;
import java.util.Collection;
import java.util.Iterator;
import java.util.ServiceLoader;
import java.util.concurrent.ConcurrentHashMap;
Expand Down Expand Up @@ -207,11 +208,14 @@ public AgroalDataSource doCreateDataSource(String dataSourceName) {
agroalConfiguration.connectionPoolConfiguration().connectionFactoryConfiguration().jdbcUrl());

// Set pool interceptors for this datasource
dataSource.setPoolInterceptors(agroalPoolInterceptors
Collection<AgroalPoolInterceptor> interceptorList = agroalPoolInterceptors
.select(dataSourceName == null || DataSourceUtil.isDefault(dataSourceName)
? Default.Literal.INSTANCE
: new DataSource.DataSourceLiteral(dataSourceName))
.stream().collect(Collectors.toList()));
.stream().collect(Collectors.toList());
if (!interceptorList.isEmpty()) {
dataSource.setPoolInterceptors(interceptorList);
}

return dataSource;
}
Expand Down

0 comments on commit bb22134

Please sign in to comment.