-
Notifications
You must be signed in to change notification settings - Fork 776
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
chore: policy report - improve logging #5941
Conversation
Signed-off-by: ShutingZhao <shuting@nirmata.com>
/cherry-pick release-1.9 |
Codecov Report
@@ Coverage Diff @@
## main #5941 +/- ##
==========================================
+ Coverage 35.71% 35.72% +0.01%
==========================================
Files 188 188
Lines 21043 21031 -12
==========================================
- Hits 7515 7513 -2
+ Misses 12699 12691 -8
+ Partials 829 827 -2
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Does it work ??? |
Can you elaborate? What do you mean? |
Did you see the expected log ? |
Nope :( |
I don't see any of these logs, why it doesn't work? @eddycharly |
Calls to V() are cumulative. You are not setting 2 but adding 2. |
@eddycharly - I found a bunch of other logs are not setting the verbosity level and directly uses it, for example, this message:
Are they not printed? |
This is suspicious. It’s adding 6 to the current level. |
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Updated the PR, I also removed un-used paras. Please take a look @eddycharly . |
Cherry-pick failed with |
Signed-off-by: ShutingZhao <shuting@nirmata.com>
I'm not able to see in this PR what's being logged regarding the issue that it closes for background scans using that flag. |
This PR logs out a message for the current configured background scan interval here which is configured via the backgroundScanInterval flag. |
I see. And is it logging that a background scan is occurring at all? That was the other portion. |
No, please take a look at the PR explanation:
|
So is there a plan to log this info? I feel it's pretty basic information. |
The current logic doesn't work as before, we could only add a message when we re-queue it (with the delay) as I did here. But I found it quite noisy so removed it. |
Ok |
Signed-off-by: ShutingZhao <shuting@nirmata.com> Signed-off-by: ShutingZhao <shuting@nirmata.com> Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
Signed-off-by: ShutingZhao <shuting@nirmata.com> Signed-off-by: ShutingZhao <shuting@nirmata.com> Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
Signed-off-by: ShutingZhao <shuting@nirmata.com> Signed-off-by: ShutingZhao <shuting@nirmata.com> Signed-off-by: MdSahil-oss <Mohdssahil1@gmail.com>
Signed-off-by: ShutingZhao shuting@nirmata.com
Explanation
This PR logs out a message for the current configured background scan interval.
It doesn't address item 1 from #5933 as we simply re-queue the report with the background scan interval. That means, we don't know how the reconciliation is triggered.
Related issue
Closes #5933.
Milestone of this PR
/1.9.0
What type of PR is this
/enhancement
Proposed Changes
Proof Manifests
Checklist
Further Comments