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

show only logs with a severity level of ERROR or higher in the stderr. #4882

Closed
wants to merge 15 commits into from

Conversation

Adarsh-verma-14
Copy link
Contributor

Signed-off-by: Adarsh-verma-14 t_adarsh.verma@india.nec.com

In the logs of keda-metrics-apiserver, show only log messages with a severity level of ERROR or higher in the stderr and Log messages with severity levels below ERROR will be included in the stdout stream.

Checklist

  • Commits are signed with Developer Certificate of Origin (DCO - learn more)

Fixes #4049

… stream.

Signed-off-by: Adarsh-verma-14 <t_adarsh.verma@india.nec.com>
@Adarsh-verma-14 Adarsh-verma-14 requested a review from a team as a code owner August 16, 2023 08:56
@github-actions
Copy link

Thank you for your contribution! 🙏 We will review your PR as soon as possible.

🏖️ Over the summer, the response time will be longer than usual due to maintainers taking time off so please bear with us.

While you are waiting, make sure to:

Learn more about:

@JorTurFer
Copy link
Member

JorTurFer commented Aug 16, 2023

/run-e2e internal
Update: You can check the progress here

Copy link
Member

@JorTurFer JorTurFer left a comment

Choose a reason for hiding this comment

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

As this is to solve an issue, could you update the changelog as well with the reference to the issue?

@@ -57,7 +57,7 @@ spec:
args:
- /usr/local/bin/keda-adapter
- --secure-port=6443
- --logtostderr=true
- --stderrthreshold=ERROR
Copy link
Member

@JorTurFer JorTurFer Aug 16, 2023

Choose a reason for hiding this comment

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

Shouldn't we add both? I mean, only printing errors, but errors should go to stderr

Copy link
Member

Choose a reason for hiding this comment

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

Agree with @JorTurFer here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Absolutely agree with @JorTurFer, if I use both arg then the output format of the logs will remain in the stderr , as the --logtostderr=true arg explicitly directs the log output to the stderr.
However, the --stderrthreshold=ERROR arg will filter the logs based on their severity levels. Only logs with a severity level of ERROR or higher will be displayed in the stderr. Logs with severity levels below ERROR will not be shown in the stderr even though they are directed to stderr.

nitishchauhan0022 and others added 14 commits September 4, 2023 10:39
Co-authored-by: Jorge Turrado <jorge_turrado@hotmail.es>
Co-authored-by: Jorge Turrado <jorge.turrado@scrm.lidl>
* Add testing strategy document

Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>

* Update TESTING.md

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>

* Update TESTING.md

Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>

* add extra info to tests

Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>

---------

Signed-off-by: Jorge Turrado <jorge.turrado@scrm.lidl>
Signed-off-by: Jorge Turrado <jorge_turrado@hotmail.es>
Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>
`s/deployment/statefulset` in `pkg/scaling/resolver/scaling_resolver.go`
for the StatefulSet scaling resolver error message.

Signed-off-by: David Morrison <drmorr@appliedcomputing.io>
* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update CHANGELOG.md

Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

* Update CHANGELOG.md

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>

---------

Signed-off-by: SpiritZhou <iammrzhouzhenghan@gmail.com>
Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
…Workload Identity in TriggerAuthentication (kedacore#4696)

Co-authored-by: Tom Kerkhove <kerkhove.tom@gmail.com>
Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
* chore(deps): bump helm/kind-action from 1.7.0 to 1.8.0

Bumps [helm/kind-action](https://github.com/helm/kind-action) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/helm/kind-action/releases)
- [Commits](helm/kind-action@v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: helm/kind-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update kind node version

Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>

* Update template-versions-smoke-tests.yml

Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jorge Turrado Ferrero <Jorge_turrado@hotmail.es>
Signed-off-by: Adarsh-verma-14 <t_adarsh.verma@india.nec.com>
@@ -35,7 +35,7 @@ jobs:
fetch-depth: 1

- name: Create k8s ${{ inputs.kubernetesVersion }} Kind Cluster
uses: helm/kind-action@v1.7.0
uses: helm/kind-action@v1.8.0
Copy link

Choose a reason for hiding this comment

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

An action sourced from a third-party repository on GitHub is not pinned to a full length commit SHA. Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.

Ignore this finding from third-party-action-not-pinned-to-commit-sha.

@Adarsh-verma-14
Copy link
Contributor Author

sorry something is wrong from my side I create again PR regarding this.

@Adarsh-verma-14
Copy link
Contributor Author

I have closed this PR and also raised a new PR(#4944 ) for the same issue .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

metrics-apiserver json logs
10 participants