Skip to content

Commit b1fcfdc

Browse files
quaffjrenaat
authored andcommitted
HHH-18538 Improve database connection info from configured DataSource
1 parent 3159c80 commit b1fcfdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/engine/jdbc/connections/internal/DatasourceConnectionProviderImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public boolean supportsAggressiveRelease() {
139139
@Override
140140
public DatabaseConnectionInfo getDatabaseConnectionInfo(Dialect dialect) {
141141
return new DatabaseConnectionInfoImpl(
142-
"Connecting through datasource" + dataSourceJndiName,
142+
"Connecting through datasource '" + (dataSourceJndiName != null ? dataSourceJndiName : dataSource) + "'",
143143
null,
144144
dialect.getVersion(),
145145
null,

0 commit comments

Comments
 (0)