You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Show port mappings in HttpWaitStrategy
* Use stream to un-map exposed port
* Catch and log failures when logging
Co-authored-by: Richard North <[email protected]>
.orElseThrow(() -> newIllegalStateException("Target port " + rawUri.getPort() + " is not exposed"));
174
+
log.info("{}: Waiting for {} seconds for URL: {} (where port {} maps to container port {})", containerName, startupTimeout.getSeconds(), uri, rawUri.getPort(), originalPort);
175
+
} catch (RuntimeExceptione) {
176
+
// do not allow a failure in logging to prevent progress, but log for diagnosis
177
+
log.warn("Unexpected error occurred - will proceed to try to wait anyway", e);
178
+
}
167
179
168
180
// try to connect to the URL
169
181
try {
@@ -243,7 +255,7 @@ private URI buildLivenessUri(int livenessCheckPort) {
0 commit comments