-
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
Revert "Set default root log level to debug" and make PULSAR_LOG_ROOT_LEVEL to default to PULSAR_LOG_LEVEL #12941
Revert "Set default root log level to debug" and make PULSAR_LOG_ROOT_LEVEL to default to PULSAR_LOG_LEVEL #12941
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.
+1
…_LEVEL to default to PULSAR_LOG_LEVEL (apache#12941)
…_LEVEL to default to PULSAR_LOG_LEVEL (apache#12941) (cherry picked from commit 959430c) (cherry picked from commit eca18ca)
…_LEVEL to default to PULSAR_LOG_LEVEL (apache#12941)
After this change, can we still dynamically adjust the log level to debug during runtime? @lhotari |
Please provide the detailed steps to reproduce. The PR doesn't prevent anything and setting could be set with environment variables. Since things have changed you might have to change your approach. Please reply to the issue or file a new issue so that the information gets shared with others. |
@lordcheng10 How do you dynamically adjust the log level? Explaining that could help understanding what the problem is.
The dynamic configuration support should support also adjusting the root logging level. |
Motivation
Reverts #7789 which had this motivation:
This PR reverts the change to set root log level to debug since it can cause many performance issues (such as #8908) when
Logger.isDebugEnabled()
defaults to true.This PR provides an alternative solution to enable debug logging. The expectation is that debug logging could be enabled by specifying
PULSAR_LOG_LEVEL=debug
. The solution is to make PULSAR_LOG_ROOT_LEVEL default to PULSAR_LOG_LEVEL.Modifications
Documentation
no-need-doc