openvidu-test-e2e: print container logs on start exception

v2
pabloFuente 2025-11-06 11:31:34 +01:00
parent 3671904a97
commit afdbe9e236
1 changed files with 8 additions and 1 deletions

View File

@ -471,7 +471,14 @@ public class OpenViduTestE2e {
container.stop();
}
if (!containerAlreadyRunning) {
container.start();
try {
container.start();
} catch (Exception e) {
log.error("Error starting container {}: {}", dockerImage, e.getMessage());
String logs = commandLine.executeCommand("docker logs " + container.getContainerId(), 10);
log.info("Container {} logs:\n{}", dockerImage, logs);
return false;
}
try {
// Avoid error starting container
Thread.sleep(5000);