Skip to content
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

8334305: Remove all code for nsk.share.Log verbose mode #21267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rsunderbabu
Copy link
Contributor

@rsunderbabu rsunderbabu commented Sep 30, 2024

Cleaning up nsk.share.Log code after the verbose mode was set always true.

Tested all the vmTestbase/ tests.


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8334305: Remove all code for nsk.share.Log verbose mode (Enhancement - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/21267/head:pull/21267
$ git checkout pull/21267

Update a local copy of the PR:
$ git checkout pull/21267
$ git pull https://git.openjdk.org/jdk.git pull/21267/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 21267

View PR using the GUI difftool:
$ git pr show -t 21267

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/21267.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 30, 2024

👋 Welcome back rsunderbabu! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Sep 30, 2024

@rsunderbabu 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:

8334305: Remove all code for  nsk.share.Log verbose mode

Reviewed-by: lmesnik

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 15 new commits pushed to the master branch:

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 (@lmesnik) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot changed the title 8334305: Remove all code for nsk.share.Log verbose mode 8334305: Remove all code for nsk.share.Log verbose mode Sep 30, 2024
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 30, 2024
@openjdk
Copy link

openjdk bot commented Sep 30, 2024

@rsunderbabu The following labels will be automatically applied to this pull request:

  • hotspot
  • serviceability

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@mlbridge
Copy link

mlbridge bot commented Sep 30, 2024

Webrevs

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 30, 2024
@@ -315,16 +262,9 @@ public void trace(int level, Object message, Throwable exception) {

/**
* Print <code>message</code> to the assigned output stream,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need replace the comma with a period.

Comment on lines -285 to -287
if (!verbose()) {
doPrint(message);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this method ever called? Is there a CR to remove it (and any references to it)?

@@ -406,10 +337,9 @@ private void logExceptionForFailureAnalysis(String msg) {
/////////////////////////////////////////////////////////////////

/**
* Redirect log to the given <code>stream</code>, and switch
* log mode to verbose.
* Redirect log to the given <code>stream</code>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need period at end of sentence.

Comment on lines 341 to +342
* Prints errors summary to current stream, cancel current stream
* and switches to new stream. Turns on verbose mode for new stream.
* and switches to new stream.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it really do all this? It looks to me like it just switches to the new stream. I'm not sure what is meant by "error summary" and cancelling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hotspot [email protected] ready Pull request is ready to be integrated rfr Pull request is ready for review serviceability [email protected]
Development

Successfully merging this pull request may close these issues.

3 participants