-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cleanup: Standardize logger message formatting in ApiServer.java #11188
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
Conversation
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.
Pull Request Overview
This PR standardizes logger message formatting in ApiServer.java by converting from string concatenation to parameterized logging. The changes improve logging performance and consistency by using placeholders ({}) instead of string concatenation with the + operator.
- Replaces string concatenation with parameterized logging format across multiple log statements
- Maintains the same log message content while improving performance and readability
- Updates debug, trace, info, and warn level logging statements
sureshanaparti
left a comment
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
|
@blueorangutan package |
|
@sureshanaparti 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. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #11188 +/- ##
=========================================
Coverage 17.56% 17.57%
- Complexity 15548 15550 +2
=========================================
Files 5913 5913
Lines 529440 529440
Branches 64670 64670
=========================================
+ Hits 93019 93025 +6
+ Misses 425963 425957 -6
Partials 10458 10458
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 14161 |
DaanHoogland
left a comment
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, it is a trivial change, so can we consider if the message level needs adjusting in the same PR? cc @sureshanaparti @JoaoJandre @bernardodemarco @winterhazel
|
@JoaoJandre Sounds good! I will address them! |
|
This pull request has merge conflicts. Dear author, please fix the conflicts and sync your branch with the base branch. |
|
Hi @he1l0world, could you resolve the conflicts here? |
|
@JoaoJandre Updated |
bernardodemarco
left a comment
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, only log messages standardization
Description
This PR improves logging consistency across the logging statements in ApiServer.java
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
How did you try to break this feature and the system with this change?