Module
Core
Proposal
Code:
|
// Log output if startup failed, either due to a container failure or exception (including timeout) |
|
final String containerLogs = getLogs(); |
|
|
|
if (containerLogs.length() > 0) { |
|
logger().error("Log output from the failed container:\n{}", getLogs()); |
Should probably call getLogs() only once as it is not expected to change in between calls
Module
Core
Proposal
Code:
testcontainers-java/core/src/main/java/org/testcontainers/containers/GenericContainer.java
Lines 540 to 544 in deb78e1
Should probably call
getLogs()only once as it is not expected to change in between calls