Skip to content

Conversation

@galderz
Copy link
Member

@galderz galderz commented May 29, 2020


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);
Copy link
Member

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".

@galderz galderz force-pushed the t_security_9664 branch from 75ac490 to 6246352 Compare June 2, 2020 10:14
@galderz
Copy link
Member Author

galderz commented Jun 2, 2020

@emmanuelbernard Pushed a fix to improve the message.

Copy link
Member

@sberyozkin sberyozkin left a 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.
@galderz galderz force-pushed the t_security_9664 branch from 6246352 to 0843e47 Compare June 5, 2020 07:21
@galderz
Copy link
Member Author

galderz commented Jun 5, 2020

@sberyozkin Done

@sberyozkin
Copy link
Member

@galderz Thanks :-), looks like everyone is happy with your fix so let me merge, cheers

@sberyozkin sberyozkin merged commit f645354 into quarkusio:master Jun 5, 2020
@gsmet gsmet added this to the 1.6.0 - master milestone Jun 10, 2020
@gsmet gsmet modified the milestones: 1.6.0 - master, 1.5.1.Final Jun 10, 2020
@gsmet gsmet changed the title Security docu fix and improved warning message Security doc fix and improved warning message Jun 10, 2020
@galderz galderz deleted the t_security_9664 branch August 24, 2020 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants