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

Fix comment NOTE about SetVLOGLevel #1109

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

hari90
Copy link

@hari90 hari90 commented Jun 21, 2024

Fix the comment about SetVLOGLevel according to #650 which added support for updating vmodule levels after vmodule level has been cached.

Fixes #858

@codecov-commenter
Copy link

codecov-commenter commented Jun 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.08%. Comparing base (45f99f5) to head (7e258ca).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1109      +/-   ##
==========================================
+ Coverage   63.57%   64.08%   +0.50%     
==========================================
  Files          20       20              
  Lines        2578     2578              
  Branches      894      906      +12     
==========================================
+ Hits         1639     1652      +13     
+ Misses        671      662       -9     
+ Partials      268      264       -4     

see 2 files with indirect coverage changes

Copy link
Collaborator

@sergiud sergiud left a comment

Choose a reason for hiding this comment

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

Thanks for the PR.

Doesn't it make more sense to supply the updated information in the user guide, for instance, by updating this section?

src/glog/vlog_is_on.h Outdated Show resolved Hide resolved
@hari90
Copy link
Author

hari90 commented Jun 24, 2024

Thanks for the PR.

Doesn't it make more sense to supply the updated information in the user guide, for instance, by updating this section?

I have put a basic description of SetVLOGLevel in the doc and more detailed information in the .h file. Let me know if this looks good enough.

Copy link
Collaborator

@sergiud sergiud left a comment

Choose a reason for hiding this comment

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

Thank you for updating the docs. However, there seems to some kind of editing error.

There's also `#!cpp VLOG_IS_ON(n)` "verbose level" condition macro. This macro
returns `#!cpp true` when the `--v` is equal to or greater than `n`. The macro can be
used as follows:
returns `#!cpp true` when the matching `--vmodule`, else `--v` is equal to or greater than `n`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

This description seems to be broken now. The else part looks out of place. What am I missing?

Copy link
Author

Choose a reason for hiding this comment

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

I was trying to convey the fact that if there is no matching --vmodule then --v is used. Should we just change it to "when the level is equal to or greater than"?

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.

Comment describing SetVLOGLevel is not accurate
3 participants