diff --git a/test-framework/devmode-test-utils/pom.xml b/test-framework/devmode-test-utils/pom.xml
index 4311def04cd6ec..563f1268f72c98 100644
--- a/test-framework/devmode-test-utils/pom.xml
+++ b/test-framework/devmode-test-utils/pom.xml
@@ -14,6 +14,10 @@
Quarkus - Test Framework - Dev Mode Test Utils
+
+ org.jboss.logging
+ jboss-logging
+
commons-io
commons-io
diff --git a/test-framework/devmode-test-utils/src/main/java/io/quarkus/test/devmode/util/DevModeClient.java b/test-framework/devmode-test-utils/src/main/java/io/quarkus/test/devmode/util/DevModeClient.java
index 82fe2688d88538..cb71d4e0449f6f 100644
--- a/test-framework/devmode-test-utils/src/main/java/io/quarkus/test/devmode/util/DevModeClient.java
+++ b/test-framework/devmode-test-utils/src/main/java/io/quarkus/test/devmode/util/DevModeClient.java
@@ -19,6 +19,7 @@
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
+import org.jboss.logging.Logger;
import io.smallrye.common.os.OS;
@@ -26,6 +27,8 @@ public class DevModeClient {
private static final long DEFAULT_TIMEOUT = OS.current() == OS.WINDOWS ? 3L : 1L;
+ private static final Logger LOG = Logger.getLogger(DevModeClient.class);
+
static long getDefaultTimeout() {
return DEFAULT_TIMEOUT;
}
@@ -180,6 +183,10 @@ public String getHttpResponse(String path, boolean allowError, Supplier
resp.set(content);
return true;
} catch (Exception e) {
+ LOG.error(
+ "An error occurred when DevModeClient accessed " + path
+ + ". It might be a normal testing behavior but logging the exception for information",
+ e);
return false;
}
});
@@ -206,6 +213,10 @@ public boolean getHttpResponse(String path, int expectedStatus, long timeout, Ti
}
return false;
} catch (Exception e) {
+ LOG.error(
+ "An error occurred when DevModeClient accessed " + path
+ + ". It might be a normal testing behavior but logging the exception for information",
+ e);
return false;
}
});
@@ -227,6 +238,10 @@ public boolean getStrictHttpResponse(String path, int expectedStatus) {
//complete no matter what the response code was
return true;
} catch (Exception e) {
+ LOG.error(
+ "An error occurred when DevModeClient accessed " + path
+ + ". It might be a normal testing behavior but logging the exception for information",
+ e);
return false;
}
});