Skip to content

Commit 0843e47

Browse files
committed
Provide clues when configuration is unrecognized #9664
* Configuration might not be recognized due to missing extension dependencies. * Improve warning message to provide such hint.
1 parent cd4a54c commit 0843e47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/runtime/src/main/java/io/quarkus/runtime/configuration/ConfigDiagnostic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static void deprecated(String name) {
4848
}
4949

5050
public static void unknown(String name) {
51-
log.warnf("Unrecognized configuration key \"%s\" was provided; it will be ignored", name);
51+
log.warnf("Unrecognized configuration key \"%s\" was provided; it will be ignored; verify that the dependency extension for this configuration is set or you did not make a typo", name);
5252
}
5353

5454
public static void unknown(NameIterator name) {
@@ -58,7 +58,7 @@ public static void unknown(NameIterator name) {
5858
public static void unknownRunTime(String name) {
5959
if (ImageInfo.inImageRuntimeCode()) {
6060
// only warn at run time for native images, otherwise the user will get warned twice for every property
61-
log.warnf("Unrecognized configuration key \"%s\" was provided; it will be ignored", name);
61+
log.warnf("Unrecognized configuration key \"%s\" was provided; it will be ignored; verify that the dependency extension for this configuration is set or that you did not make a typo", name);
6262
}
6363
}
6464

0 commit comments

Comments
 (0)