-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][broker] Optimize the log printing of PulsarService #18244
Conversation
LOG.info("messaging service is ready, bootstrap_seconds={}", bootstrapTimeSeconds); | ||
LOG.info("messaging service is ready, {}, cluster={}, configs={}", bootstrapMessage, | ||
config.getClusterName(), config); | ||
LOG.info("messaging service is ready, {}, cluster={}, configs={}, bootstrap_seconds={}", bootstrapMessage, |
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.
It's better move the bootstrap_seconds
to first position, because the configs
will be very long
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.
+1
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.
@codelipenghui @AnonHxy I have updated, PTAL.
2ec2dbf
to
75e867a
Compare
Codecov Report
@@ Coverage Diff @@
## master #18244 +/- ##
=============================================
+ Coverage 38.84% 49.48% +10.64%
+ Complexity 8286 6999 -1287
=============================================
Files 683 398 -285
Lines 67323 43587 -23736
Branches 7215 4475 -2740
=============================================
- Hits 26152 21570 -4582
+ Misses 38210 19634 -18576
+ Partials 2961 2383 -578
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Motivation
In
org.apache.pulsar.broker.PulsarService#start
, two log printing can be combined into one line.pulsar/pulsar-broker/src/main/java/org/apache/pulsar/broker/PulsarService.java
Lines 905 to 907 in b7b9239
Modifications
Combine the two log lines in the
org.apache.pulsar.broker.PulsarService#start
into one line.Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: Pomelongan#11