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
Add logs to script and command execution #6874
Conversation
Codecov Report
@@ Coverage Diff @@
## main #6874 +/- ##
=============================================
+ Coverage 10.85% 27.61% +16.75%
- Complexity 7106 28818 +21712
=============================================
Files 2485 5121 +2636
Lines 245417 411899 +166482
Branches 38326 73699 +35373
=============================================
+ Hits 26631 113726 +87095
- Misses 215516 282737 +67221
- Partials 3270 15436 +12166
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 4014 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Kudos, SonarCloud Quality Gate passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@blueorangutan package |
@DaanHoogland a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. LL-JID 222 |
@DaanHoogland, the isEnabled check is detrimental in terms of code legibility. In my opinion, this check's barely noticeable performance gain is not sufficient to counter this negative impact, so it should not be used in this scenario. |
I don´t agree. we could change the log library to add variable parameters to the trace/debug/info messages to make the log line look cleaner. I´m very extrmely for legibility but not at cost of neat following of best practices. |
I understand; however, it is not consensus that the isEnabled check should be used, and the scenarios here do not require so much processing in order to make it necessary to validate the log level before creating the string, so I'd rather not add them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLGTM
As mentioned in comment #6947 (comment), I will be helping out @stephankruggg with some of his opened PRs. @DaanHoogland given that the patch for upgrading Log4j is already ready, is guarding these logs still necessary? Could we move on with this PR? |
@GaOrtiga , let me put it like this; I will not involve myself in these discussions anymore, nor have I changed my opinion. I will not (freudian error) stand in the way of it either. |
@blueorangutan package |
@shwstppr a [SF] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Packaging result [SF]: ✔️ el7 ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 7205 |
@blueorangutan test |
@DaanHoogland a [SF] Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
[SF] Trillian test result (tid-7825)
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM
I am not +1, more like -0, but too many do not agree with my stance on the logging issue, so I'll merge this anyway. |
Description
This PR adds and improves existing logs when executing scripts and commands, since current information is not sufficient to enable troubleshooting.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
How Has This Been Tested?
I applied the changes in a local lab and checked if the updated logs were successfully logged.