From 80f6ef5053d49f3d33310d8730fff5d6bf5f6a2e Mon Sep 17 00:00:00 2001 From: Robert Stupp Date: Tue, 2 May 2023 17:16:06 +0200 Subject: [PATCH] Add some hint to inspect the log-level Setting the log-level of a Quarkus app to WARN to even less verbose can break the detection of a successfully started application. This change just adds a note to inspect those settings to the error message(s). --- .../src/main/java/io/quarkus/test/common/LauncherUtil.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test-framework/common/src/main/java/io/quarkus/test/common/LauncherUtil.java b/test-framework/common/src/main/java/io/quarkus/test/common/LauncherUtil.java index 223e06623820c..3742af25af83f 100644 --- a/test-framework/common/src/main/java/io/quarkus/test/common/LauncherUtil.java +++ b/test-framework/common/src/main/java/io/quarkus/test/common/LauncherUtil.java @@ -271,7 +271,8 @@ public CaptureListeningDataReader(Path processOutput, Duration waitTime, CountDo @Override public void run() { if (!ensureProcessOutputFileExists()) { - unableToDetermineData("Log file '" + processOutput.toAbsolutePath() + "' was not created."); + unableToDetermineData("Log file '" + processOutput.toAbsolutePath() + "' was not created. " + + "Check if the options quarkus.log.level and quarkus.log.file.level are at least INFO (or more verbose)."); return; } @@ -311,7 +312,8 @@ public void run() { dataDetermined(null, null); // no http, all is null } else { unableToDetermineData("Waited " + waitTime.getSeconds() + " seconds for " + processOutput - + " to contain info about the listening port and protocol but no such info was found"); + + " to contain info about the listening port and protocol but no such info was found. " + + "Check if the options quarkus.log.level and quarkus.log.file.level are at least INFO (or more verbose)."); } return; }