-
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
Fix log level config for pulsar-admin, pulsar-client and pulsar-perf #12915
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Logger.isDebugEnabled will evaluate to true in the default configuration due to apache#7789 change
lhotari
added
type/bug
The PR fixed a bug or issue reported a bug
doc-not-needed
Your PR changes do not impact docs
release/2.7.4
release/2.9.1
release/2.8.3
labels
Nov 22, 2021
lhotari
requested review from
merlimat,
eolivelli,
315157973 and
codelipenghui
November 22, 2021 08:34
1 task
eolivelli
approved these changes
Nov 22, 2021
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
I am testing this locally now
I believe that this patch will have an impact on users of pulsar-perf
because we are wasting many resources in entering inside the logger guards
nicoloboschi
approved these changes
Nov 22, 2021
The patch works like a charm |
codelipenghui
approved these changes
Nov 22, 2021
hangc0276
approved these changes
Nov 22, 2021
merlimat
approved these changes
Nov 22, 2021
zeo1995
pushed a commit
to zeo1995/pulsar
that referenced
this pull request
Nov 23, 2021
* up/master: [Doc] add explanations for REST (apache#12918) [Doc] add explanations for permissions (apache#12920) Apply executable file permissions to py scripts. (apache#12852) Fix log level config for pulsar-admin, pulsar-client and pulsar-perf (apache#12915) Abstract some common methods to AbstractMetadataStore (apache#12916) Build website using https://pulsar.apache.org (apache#12901)
dlg99
pushed a commit
to dlg99/pulsar
that referenced
this pull request
Nov 23, 2021
…pache#12915) - Logger.isDebugEnabled will evaluate to true in the default configuration due to apache#7789 change
codelipenghui
pushed a commit
that referenced
this pull request
Nov 26, 2021
eolivelli
pushed a commit
to eolivelli/pulsar
that referenced
this pull request
Nov 29, 2021
…pache#12915) - Logger.isDebugEnabled will evaluate to true in the default configuration due to apache#7789 change
lhotari
added a commit
that referenced
this pull request
Dec 9, 2021
lhotari
added
cherry-picked/branch-2.9
Archived: 2.9 is end of life
release/2.8.2
and removed
release/2.8.3
labels
Dec 9, 2021
codelipenghui
pushed a commit
that referenced
this pull request
Dec 11, 2021
fxbing
pushed a commit
to fxbing/pulsar
that referenced
this pull request
Dec 19, 2021
…pache#12915) - Logger.isDebugEnabled will evaluate to true in the default configuration due to apache#7789 change
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
cherry-picked/branch-2.7
Archived: 2.7 is end of life
cherry-picked/branch-2.8
Archived: 2.8 is end of life
cherry-picked/branch-2.9
Archived: 2.9 is end of life
doc-not-needed
Your PR changes do not impact docs
release/2.7.4
release/2.8.2
release/2.9.1
type/bug
The PR fixed a bug or issue reported a bug
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Logger.isDebugEnabled will evaluate to true in the default configuration due to #7789 change.
The problem was mitigated for
bin/pulsar
script by #8908 .This PR addressed the issue in
pulsar-admin
,pulsar-client
andpulsar-perf
.Modifications
Set
pulsar.log.root.level
system property toinfo
by default and make it configurable withPULSAR_LOG_ROOT_LEVEL
environment variable, in the similar way as it is achieved inbin/pulsar
.