Refactor cloud-agent module logs for Log4j2#8714
Conversation
|
Congratulations on your first Pull Request and welcome to the Apache CloudStack community! If you have any issues or are unsure about any anything please check our Contribution Guide (https://github.com/apache/cloudstack/blob/main/CONTRIBUTING.md)
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8714 +/- ##
============================================
+ Coverage 30.93% 31.06% +0.12%
- Complexity 33753 33909 +156
============================================
Files 5404 5404
Lines 380309 380289 -20
Branches 55507 55489 -18
============================================
+ Hits 117658 118122 +464
+ Misses 247041 246512 -529
- Partials 15610 15655 +45
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
DaanHoogland
left a comment
There was a problem hiding this comment.
thanks for the effort @KlausDornsbach. Looks good to me, just one remark that actually is a bit out of scope but is touched upon in your change, so maybe we can add this easy win.
|
@blueorangutan package |
|
@DaanHoogland a [SL] 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 8808 |
JoaoJandre
left a comment
There was a problem hiding this comment.
Overall looks good, I've found one issue that should be fixed and some points that could be improved but are a little out of scope of this PR.
|
@blueorangutan package |
|
@DaanHoogland a [SL] 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 8843 |
|
@blueorangutan package |
|
@JoaoJandre a [SL] 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 8982 |
I can not find the reference to |
Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com>
revert a lambda expression because log4j2 does not support a non lambda + lambda as parameters
fixing little mistake
a7605e3 to
396034a
Compare
|
Thanks for the heads up @DaanHoogland, hopefully issues are solved now. |
|
@blueorangutan package |
|
@JoaoJandre a [SL] 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 9044 |
|
@blueorangutan test alma9 kvm-alma9 |
|
@DaanHoogland a [SL] Trillian-Jenkins test job (alma9 mgmt + kvm-alma9) has been kicked to run smoke tests |
|
[SF] Trillian test result (tid-9623)
|
|
Merging based on approvals and CI result |
|
Awesome work, congrats on your first merged pull request! |
* Refactor cloud-agent module logs for Log4j2 * better log4j2 logs for cloud-agent module * erasing commented lines * erasing unused import * fixing mistakes * more log refactor * fixing log refactor lambdas * adding suggestions to log refactor * Apply suggestions from code review Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com> * Update Agent.java revert a lambda expression because log4j2 does not support a non lambda + lambda as parameters * Update Agent.java fixing little mistake --------- Co-authored-by: klaus.freitas.scclouds <klaus.freitas@scclouds.com.br> Co-authored-by: João Jandre <48719461+JoaoJandre@users.noreply.github.com>
Description
With the new version of Log4j there is some space for improving log readability using the new features. This PR refactors the logs from the cloud-agent module.
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
How Has This Been Tested?
It was tested in a local lab: