Skip to content

fix: InitLogging verbosity ignored due to ctrl.SetLogger single-fulfillment#2363

Merged
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
tomatillo-and-multiverse:fix/debug-log-verbosity
Feb 18, 2026
Merged

fix: InitLogging verbosity ignored due to ctrl.SetLogger single-fulfillment#2363
k8s-ci-robot merged 1 commit intokubernetes-sigs:mainfrom
tomatillo-and-multiverse:fix/debug-log-verbosity

Conversation

@kaushikmitr
Copy link
Copy Markdown
Contributor

This pull request improves the logging setup in pkg/common/observability/logging/logger.go to allow dynamic adjustment of the log level after the controller-runtime logger delegation. The main change introduces a shared atomic log level to ensure log verbosity can be updated at runtime.

Logging configuration improvements:

  • Introduced a shared atomicLevel variable using uberzap.NewAtomicLevelAt(zapcore.InfoLevel) to enable runtime log level changes across logger instances.
  • Modified InitSetupLogging and InitLogging to use atomicLevel, ensuring log level updates are reflected without needing to re-delegate the controller-runtime logger.
  • Added logic in InitLogging to mutate atomicLevel based on the provided opts.Level, supporting both uberzap.AtomicLevel and zapcore.Level types.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Feb 17, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Feb 17, 2026

Deploy Preview for gateway-api-inference-extension ready!

Name Link
🔨 Latest commit c6c1c61
🔍 Latest deploy log https://app.netlify.com/projects/gateway-api-inference-extension/deploys/6994d74eaee7b30008007274
😎 Deploy Preview https://deploy-preview-2363--gateway-api-inference-extension.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@shmuelk
Copy link
Copy Markdown
Contributor

shmuelk commented Feb 18, 2026

Thank you very much for correcting my oversight when I tried to fix the startup logging.

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Feb 18, 2026
@ahg-g
Copy link
Copy Markdown
Contributor

ahg-g commented Feb 18, 2026

/approve

@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahg-g, kaushikmitr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 18, 2026
@k8s-ci-robot k8s-ci-robot merged commit a774b0a into kubernetes-sigs:main Feb 18, 2026
11 checks passed
RyanRosario pushed a commit to RyanRosario/gateway-api-inference-extension that referenced this pull request Mar 9, 2026
elevran pushed a commit to llm-d/llm-d-inference-scheduler that referenced this pull request Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants