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: use log level 1 for debug #3039

Merged
merged 3 commits into from
Oct 9, 2023
Merged

fix: use log level 1 for debug #3039

merged 3 commits into from
Oct 9, 2023

Conversation

acpana
Copy link
Contributor

@acpana acpana commented Oct 5, 2023

Verbosity log levels (V level) are additive so starting at 2 is actually a higher level than Debug. So in effect, today, if users use log-level=DEBUG any log line that uses loggging.Debug as its V level will not see the line since we don't have a control for higher verbosity (>1) yet.

Not sure why it was 2 to begin with but I think it may have been missed on the original PR that introduced it #482.

todo

Signed-off-by: alex <8968914+acpana@users.noreply.github.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 5, 2023

Codecov Report

Attention: 11 lines in your changes are missing coverage. Please review.

Comparison is base (5c99159) 52.49% compared to head (d61780f) 52.46%.
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3039      +/-   ##
==========================================
- Coverage   52.49%   52.46%   -0.03%     
==========================================
  Files         134      134              
  Lines       11937    11948      +11     
==========================================
+ Hits         6266     6269       +3     
- Misses       5179     5188       +9     
+ Partials      492      491       -1     
Flag Coverage Δ
unittests 52.46% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
pkg/logging/logging.go 100.00% <ø> (ø)
pkg/webhook/policy.go 33.46% <0.00%> (-0.77%) ⬇️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@sozercan sozercan left a comment

Choose a reason for hiding this comment

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

Thanks! LGTM

Copy link
Contributor

@maxsmythe maxsmythe left a comment

Choose a reason for hiding this comment

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

LGTM

@acpana acpana merged commit e18ebbc into master Oct 9, 2023
27 checks passed
@sozercan sozercan deleted the acpana-patch-1 branch October 10, 2023 01:02
Mattes83 pushed a commit to Mattes83/gatekeeper that referenced this pull request Oct 25, 2023
Signed-off-by: alex <8968914+acpana@users.noreply.github.com>
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