mirror of https://github.com/OpenVidu/openvidu.git
openvidu-test-e2e: print container logs on start exception
parent
3671904a97
commit
afdbe9e236
|
|
@ -471,7 +471,14 @@ public class OpenViduTestE2e {
|
||||||
container.stop();
|
container.stop();
|
||||||
}
|
}
|
||||||
if (!containerAlreadyRunning) {
|
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 {
|
try {
|
||||||
// Avoid error starting container
|
// Avoid error starting container
|
||||||
Thread.sleep(5000);
|
Thread.sleep(5000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue