-
Notifications
You must be signed in to change notification settings - Fork 3k
Security doc fix and improved warning message #9673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| public static void unknown(String name) { | ||
| log.warnf("Unrecognized configuration key \"%s\" was provided; it will be ignored", name); | ||
| log.warnf("Unrecognized configuration key \"%s\" was provided; it will be ignored; verify that the dependency extension for this configuration is set", name); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you display this, you also should add "or that you did not make a typo".
|
@emmanuelbernard Pushed a fix to improve the message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@galderz IMHO it looks good. Small proposal, drop a 2nd that in the message as it has become a bit long for it to become:
...verify that the dependency extension for this configuration is set or you did not make a typo
But it is just a very small thing, cc @gsmet @emmanuelbernard please merge if you are happy with the PR
* Configuration might not be recognized due to missing extension dependencies. * Improve warning message to provide such hint.
|
@sberyozkin Done |
|
@galderz Thanks :-), looks like everyone is happy with your fix so let me merge, cheers |
#9664