Skip to content
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
merged 1 commit into from
Nov 22, 2021

Conversation

lhotari
Copy link
Member

@lhotari lhotari commented Nov 22, 2021

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 and pulsar-perf.

Modifications

Set pulsar.log.root.level system property to info by default and make it configurable with PULSAR_LOG_ROOT_LEVEL environment variable, in the similar way as it is achieved in bin/pulsar.

- Logger.isDebugEnabled will evaluate to true in the default configuration
  due to apache#7789 change
@lhotari 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 lhotari added this to the 2.10.0 milestone Nov 22, 2021
@lhotari lhotari self-assigned this Nov 22, 2021
Copy link
Contributor

@eolivelli eolivelli left a 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

@eolivelli
Copy link
Contributor

The patch works like a charm

@merlimat merlimat merged commit 6200ef1 into apache:master 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
…12915)

- Logger.isDebugEnabled will evaluate to true in the default configuration
  due to #7789 change

(cherry picked from commit 6200ef1)
@codelipenghui codelipenghui added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label 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
…12915)

- Logger.isDebugEnabled will evaluate to true in the default configuration
  due to #7789 change

(cherry picked from commit 6200ef1)
@lhotari 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
…12915)

- Logger.isDebugEnabled will evaluate to true in the default configuration
  due to #7789 change

(cherry picked from commit 6200ef1)
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants