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

[1.42.x] KOGITO-8276: Improve the logging adding missing levels #212

Merged
merged 4 commits into from
Aug 10, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Aug 2, 2023

Backport: https://github.com/kiegroup/kogito-serverless-operator/pull/201

Note: CI is not automatically triggered on backported PRs, please comment 'ok to test' to launch Jenkins jobs

Description of the change:

See https://issues.redhat.com/browse/KOGITO-8276

Motivation for the change:

Consolidate logging system.

Checklist

  • Add or Modify a unit test for your change
  • Have you verified that all the tests are passing?
How to backport a pull request to a different branch?

In order to automatically create a backporting pull request please add one or more labels having the following format backport-<branch-name>, where <branch-name> is the name of the branch where the pull request must be backported to (e.g., backport-7.67.x to backport the original PR to the 7.67.x branch).

NOTE: backporting is an action aiming to move a change (usually a commit) from a branch (usually the main one) to another one, which is generally referring to a still maintained release branch. Keeping it simple: it is about to move a specific change or a set of them from one branch to another.

Once the original pull request is successfully merged, the automated action will create one backporting pull request per each label (with the previous format) that has been added.

If something goes wrong, the author will be notified and at this point a manual backporting is needed.

NOTE: this automated backporting is triggered whenever a pull request on main branch is labeled or closed, but both conditions must be satisfied to get the new PR created.

* KOGITO-8276: Improve the logging adding missing levels

* Add support for -zap-log-level CLI flag

* Fix function invocation.

* Updates following peer review.

* Updates following peer review x2. Remove use of logger argument.

* Remove klog.InitFlags(nil) in Logger wrappers.

* Run make generate-all

* Another refactor removing wrappers and contexts.

* More updates.

* Enable Info logging by default.

* Add missing klog dependency.

* Fix erroneous logging statements.

* Move to structured logging.

* Remove references to k8s.io/klog[v1]

* Fix build

* Fix go.sum

* Update container-builder/builder/kubernetes/builder.go

Co-authored-by: Filippe Spolti <[email protected]>

* Update container-builder/builder/kubernetes/builder.go

Co-authored-by: Filippe Spolti <[email protected]>

* Update utils/kubernetes/annotations.go

Co-authored-by: Filippe Spolti <[email protected]>

* Update controllers/builder/containerbuilder.go

Co-authored-by: Filippe Spolti <[email protected]>

* Update container-builder/client/fastmapper.go

* Update container-builder/common/registry_docker.go

Co-authored-by: Massimiliano Dessì - (Fast Chauffeur) <[email protected]>

* Update controllers/platform/platformutils.go

Co-authored-by: Massimiliano Dessì - (Fast Chauffeur) <[email protected]>

* Update controllers/platform/platformutils.go

Co-authored-by: Massimiliano Dessì - (Fast Chauffeur) <[email protected]>

* Update controllers/platform/platformutils.go

Co-authored-by: Massimiliano Dessì - (Fast Chauffeur) <[email protected]>

---------

Co-authored-by: Michael Anstis <[email protected]>
Co-authored-by: Filippe Spolti <[email protected]>
Co-authored-by: Massimiliano Dessì - (Fast Chauffeur) <[email protected]>
@kie-ci
Copy link

kie-ci commented Aug 2, 2023

Can one of the admins verify this patch?

@ricardozanini ricardozanini requested review from davidesalerno and ricardozanini and removed request for desmax74 August 2, 2023 12:02
@ricardozanini ricardozanini merged commit 284b5c8 into 1.42.x Aug 10, 2023
4 checks passed
@ricardozanini ricardozanini deleted the 1.42.x_KOGITO-8276 branch August 10, 2023 15:50
MarianMacik pushed a commit to MarianMacik/kogito-serverless-operator that referenced this pull request Oct 3, 2023
MarianMacik pushed a commit to MarianMacik/kogito-serverless-operator that referenced this pull request Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants