Repository navigation
[release-nextgen-202609] log(logger): only write sarama logs at debug level - #6987
Conversation
|
This cherry pick PR is for a release branch and has not yet been approved by triage owners. To merge this cherry pick:
DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Important Review skippedBot user detected. Ask an organization administrator to verify that this bot has an active assigned CodeRabbit review seat. See the seat-assignment guide. After the seat is confirmed, request a review again.
|
This is an automated cherry-pick of #6982
Issue Number: close #6983
What is changed and how it works?
initSaramaLoggeralways installs the zap adapter instead of swapping in anio.Discardlogger atinfoand above; sarama messages are written atdebuglevel, so the log level alone decides whether they show up./api/v2/log) turns sarama output on without a restart.initSaramaLoggeris dropped;initOptionalComponentparses the level only for the gRPC logger.Check List
Tests
Start a capture at
info, write tosarama.Logger, and confirm nothing is written; then set the level todebugand confirm the message shows up.Questions
Will it cause performance regression or break compatibility?
No.
Do you need to update user documentation, design documentation or monitoring documentation?
No.
Release note
Summary by CodeRabbit