HHH-18538 Improve database connection info from configured DataSource

This commit is contained in:
Yanming Zhou 2024-08-29 10:59:38 +08:00 committed by Jan Schatteman
parent 3159c80146
commit b1fcfdc54e
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ public class DatasourceConnectionProviderImpl implements ConnectionProvider, Con
@Override
public DatabaseConnectionInfo getDatabaseConnectionInfo(Dialect dialect) {
return new DatabaseConnectionInfoImpl(
"Connecting through datasource" + dataSourceJndiName,
"Connecting through datasource '" + (dataSourceJndiName != null ? dataSourceJndiName : dataSource) + "'",
null,
dialect.getVersion(),
null,