wuzhanpeng opened a new pull request #11993:
URL: https://github.com/apache/pulsar/pull/11993
### Motivation
This PR supplements a useful feature that enable users to reset logger level
in runtime. It is very meaningful for developers to dynamically adjust the log
level in the production environment, especially in the case of tracing online
problems and unable to restart the broker process.
### Modifications
- add an REST endpoint for resetting
(/brokers/configuration/log4j/{logger}/{level})
- add a companion admin cmd under `broker` (bin/pulsar-admin brokers
reset-logger-level)
### Verifying this change
This change added tests and can be verified as follows:
*(example:)*
- *Run`bin/pulsar-admin brokers reset-logger-level --level debug --logger
root` after broker start to check log level*
- *Run`bin/pulsar-admin brokers reset-logger-level --level info --logger
root` to restore*
### Does this pull request potentially affect one of the following parts:
*If `yes` was chosen, please highlight the changes*
- Dependencies (does it add or upgrade a dependency): no
- The public API: no
- The schema: no
- The default values of configurations: no
- The wire protocol: no
- `The rest endpoints: yes`
- `The admin cli options: yes`
- Anything that affects deployment: no
### Documentation
- [x] doc-required
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]