Skip to content

Commit ccf93df

Browse files
committed
HHH-19288 Move log of connection details to a method
For Hibernate Reactive, it needs to be able to disable, or customize, the log of the connection details.
1 parent 2d2bf12 commit ccf93df

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

hibernate-core/src/main/java/org/hibernate/engine/jdbc/env/internal/JdbcEnvironmentInitiator.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,14 @@ else if ( explicitDialectConfiguration( explicitDatabaseName, configurationValue
172172
databaseConnectionInfo = buildInfo( configurationValues, jdbcEnvironment );
173173
}
174174

175+
logConnectionInfo( databaseConnectionInfo );
176+
return jdbcEnvironment;
177+
}
178+
179+
// For Hibernate Reactive: it needs to disable or customize the log
180+
protected void logConnectionInfo(DatabaseConnectionInfo databaseConnectionInfo) {
175181
// Standardized info logging
176182
ConnectionInfoLogger.INSTANCE.logConnectionInfoDetails( databaseConnectionInfo.toInfoString() );
177-
return jdbcEnvironment;
178183
}
179184

180185
private DatabaseConnectionInfo buildInfo(ServiceRegistryImplementor registry, JdbcEnvironment environment) {

0 commit comments

Comments
 (0)