-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
8257872: UL: -Xlog does not check number of options #1685
Conversation
👋 Welcome back ksakata! A progress list of the required criteria for merging this PR into |
Webrevs
|
break; | ||
} | ||
} | ||
|
||
if (str != NULL) { | ||
log_warning(logging)("Options are specified more than the max number in -Xlog."); |
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.
Might I suggest:
log_warning(logging)("Ignoring excess -Xlog options: \"%s\"", str);
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.
Thank you for your suggestion. This message is clear for everyone. I changed the warning message.
Should this be a warning or an error? The behavior seems inconsistent:
|
In this PR I chose a warning level to ignore the invalid option and run a application. It isn't serious thing and some people might run with invalid option already. The fourth option is for output-option and can be described relatively free. So I suspect that it is ignored even when it is invalid. |
I think a warning is okay in this context. |
@jyukutyo This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 89 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@dholmes-ora, @iklam, @YaSuenag) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
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.
Agree that warning is OK.
/integrate |
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.
Looks good! I will sponsor you.
/sponsor |
@YaSuenag @jyukutyo Since your change was applied there have been 89 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit 34650f5. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
In Unified Logging options can be specified up to four (
-Xlog[:[selections][:[output][:[decorators][:output-options]]]]
).But it’s possible to specify options with more colons like
java -Xlog:::::
.It’s better to show a message when more options are specified than maximum number.
By this PR a warning message is outputted when options are specified more than the max number.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/1685/head:pull/1685
$ git checkout pull/1685