-
Notifications
You must be signed in to change notification settings - Fork 42
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
KOGITO-8276: Improve the logging adding missing levels #201
Conversation
54ec0e5
to
3291566
Compare
@ricardozanini I'm going to need some advice here. I had to remove I originally added it to ensure the |
That's perfectly fine. klog should be reading the go flags under the hood by the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, many thanks! 🙏
A few minor comments. One thing that we could add to the manager deployment file, is the:
args:
- '-v=1'
So, by default, we set the verbosity to WARN and give a clue to the administrator to fine-tune their setup.
Hmmmm.. both failing set of tests seem to relate to both
|
Co-authored-by: Filippe Spolti <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice, just a few comments, not mandatory.
Co-authored-by: Filippe Spolti <[email protected]>
Co-authored-by: Filippe Spolti <[email protected]>
Co-authored-by: Filippe Spolti <[email protected]>
Hi @desmax74 this is just waiting for your final approval. |
@manstis added the request to remove the ":" where was the placeholder. |
Co-authored-by: Massimiliano Dessì - (Fast Chauffeur) <[email protected]>
Co-authored-by: Massimiliano Dessì - (Fast Chauffeur) <[email protected]>
Co-authored-by: Massimiliano Dessì - (Fast Chauffeur) <[email protected]>
Co-authored-by: Massimiliano Dessì - (Fast Chauffeur) <[email protected]>
* 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]>
* KOGITO-8276: Improve the logging adding missing levels (#201) * 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]> * Fix codegen Signed-off-by: Ricardo Zanini <[email protected]> --------- Signed-off-by: Ricardo Zanini <[email protected]> Co-authored-by: Michael Anstis <[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]> Co-authored-by: Ricardo Zanini <[email protected]> Co-authored-by: Ricardo Zanini <[email protected]>
Signed-off-by: Ricardo Zanini <[email protected]>
Description of the change:
See https://issues.redhat.com/browse/KOGITO-8276
Motivation for the change:
Consolidate logging system.
Checklist
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 the7.67.x
branch).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.