Skip to content

Commit 48083c1

Browse files
Move log for JDBC URL to containerIsStarted (#6646)
Co-authored-by: Eddú Meléndez <[email protected]>
1 parent 27ae496 commit 48083c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/jdbc/src/main/java/org/testcontainers/containers/JdbcDatabaseContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ protected void waitUntilContainerStarted() {
158158
try (Connection connection = createConnection(""); Statement statement = connection.createStatement()) {
159159
boolean testQuerySucceeded = statement.execute(this.getTestQueryString());
160160
if (testQuerySucceeded) {
161-
logger().info("Container is started (JDBC URL: {})", this.getJdbcUrl());
162161
return;
163162
}
164163
} catch (NoDriverFoundException e) {
@@ -184,6 +183,7 @@ protected void waitUntilContainerStarted() {
184183

185184
@Override
186185
protected void containerIsStarted(InspectContainerResponse containerInfo) {
186+
logger().info("Container is started (JDBC URL: {})", this.getJdbcUrl());
187187
runInitScriptIfRequired();
188188
}
189189

0 commit comments

Comments
 (0)