Skip to content

Commit

Permalink
Add some hint to inspect the log-level
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
snazy committed May 3, 2023
1 parent 53a0bc3 commit 6fc1f3b
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,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;
}

Expand Down Expand Up @@ -259,7 +260,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;
}
Expand Down

0 comments on commit 6fc1f3b

Please sign in to comment.