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

adding a call to controller-runtimes SetLogger and io.Discard #1160

Merged

Conversation

acornett21
Copy link
Contributor

@acornett21 acornett21 requested review from bcrochet and komish May 7, 2024 20:43
@openshift-ci openshift-ci bot requested review from jomkz and skattoju May 7, 2024 20:43
@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 7, 2024
@dcibot
Copy link

dcibot commented May 7, 2024

Copy link
Contributor

@bcrochet bcrochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick question.

cmd/preflight/cmd/root.go Outdated Show resolved Hide resolved
@komish
Copy link
Contributor

komish commented May 8, 2024

  1. Is this a result of a controller-runtime version bump, or have these log lines been there for a while?
  2. If this is new, should this not be a bug filed against controller-runtime?
  3. Should this be run closer to where the problem is? E.g. DeployableByOLM-related code?

@acornett21
Copy link
Contributor Author

  1. Is this a result of a controller-runtime version bump, or have these log lines been there for a while?
  2. If this is new, should this not be a bug filed against controller-runtime?
  3. Should this be run closer to where the problem is? E.g. DeployableByOLM-related code?
  1. This has been in controller-runtime since 0.15.0, and I've noticed it off/on since then, but since I'm usually running in trace I never understood why it would sometimes happen, and others not.
  2. No, this isn't a bug in controller runtime. It's just a warning to remind users of the library that 'hey you haven't called the logger'.
  3. I believe this is where this needs to be, since this is part of the init chain and only have 30seconds before the warning is thrown, at least that's how I read the code. Most other projects have this is root or main

…d controller-runtimes noise in logging

Signed-off-by: Adam D. Cornett <adc@redhat.com>
@dcibot
Copy link

dcibot commented May 8, 2024

Copy link
Contributor

@komish komish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 8, 2024
Copy link
Contributor

@bcrochet bcrochet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link

openshift-ci bot commented May 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: acornett21, bcrochet, komish

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

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [acornett21,bcrochet,komish]

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

@bcrochet bcrochet merged commit 5fa97bf into redhat-openshift-ecosystem:main May 8, 2024
5 checks passed
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. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate log.SetLogger for controller-runtime
4 participants