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

Rejuvenate log levels #2978

Closed
wants to merge 4 commits into from

Conversation

yiming-tang-cs
Copy link

@yiming-tang-cs yiming-tang-cs commented Nov 15, 2019

Here's a reissue of #2754 with a new version of our tool. The tool made many fewer transformations. Again, we'd appreciate any feedback and are willing to make further changes if you wish to incorporate our PR into your project.

Settings

We have several analysis settings. We can vary these settings and rerun if you desire. The settings we are using in this pull request are:

  • Treat CONFIG, WARNING, and SEVERE levels as a category and not a traditional level, i.e., our tool ignores these log levels.
  • Never lower the logging level of logging statements within catch blocks.
  • Never lower the logging level of logging statements within if statements.
  • Never lower the logging level of logging statements containing certain (important) keywords.
  • Never raise the logging level of logging statements without particular keywords in their messages.
  • Avoid log wrapping by disregarding logging statements contained in if statements mentioning log levels.
  • Adjust transformations if their transformation distances are over maximum transformation distance.

The greatest number of commits from HEAD evaluated: 5000.
The head at the time of analysis was: 0f3b14d

OCA

I signed and emailed the OCA to Oracle. I am also providing a written acceptance of the OCA line:

I am signing on behalf of myself as an individual and no other person or entity, including my employer, has or will have rights with respect my contributions.

@idodeclare
Copy link
Contributor

When I see e.g. INFO -> FINEST, I'm more skeptical than e.g. FINER to FINEST. Does your tool take into account the existing log level?

@yiming-tang-cs
Copy link
Author

No, we currently do not use the existing level in our analysis. We will now add a maximum log level transformation threshold setting and edit the PR using this new setting. Thank you for your feedback.

-- @khatchad & @saledouble

@yiming-tang-cs
Copy link
Author

We have added a setting to limit the transformation distance and rerun the latest version of the tool. The transformations in this PR were updated. If there is anything we can do for the merging or feedback, please let us know. Thank you so much!

@yiming-tang-cs
Copy link
Author

I also revised the PR description to include the new setting.

@ahornace
Copy link
Contributor

ahornace commented Apr 23, 2021

Closing due to inactivity and conflicts. Please resolve them, possibly run the tool again on the new head, and reopen.

I personally believe that log levels are sometimes a subjective thing (at least at the time of programming). Have you been using static or dynamic analysis? If you reopen the PR with conflicts resolved, then I'll gladly take a look at your tool :)

@ahornace ahornace closed this Apr 23, 2021
@khatchad
Copy link

Thanks, @ahornace. @saledouble is currently working on revising her thesis, but, when she is done with that, perhaps she can run the tool again on the latest HEAD and reopen and you say. Currently, we are only using static analysis, but dynamic analysis has been something we have been thinking about. Thank you again for your willingness to review our tool!

@yiming-tang-cs
Copy link
Author

Superseded by #3617.

@khatchad khatchad deleted the cws_ififcatchkey branch June 2, 2021 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants