Skip to content

Commit ac020bc

Browse files
authored
Stop logging about starting when reusing (#4844)
1 parent 4fe304a commit ac020bc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

core/src/main/java/org/testcontainers/containers/GenericContainer.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,12 +421,10 @@ private void tryStart(Instant startedAt) {
421421
if (!reused) {
422422
containerIsCreated(containerId);
423423

424-
logger().info("Starting container with ID: {}", containerId);
424+
logger().info("Container {} is starting: {}", dockerImageName, containerId);
425425
dockerClient.startContainerCmd(containerId).exec();
426426
}
427427

428-
logger().info("Container {} is starting: {}", dockerImageName, containerId);
429-
430428
// For all registered output consumers, start following as close to container startup as possible
431429
this.logConsumers.forEach(this::followOutput);
432430

0 commit comments

Comments
 (0)