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

New LogConstructur causes all loggers to report the same metadata #1908

Closed
maboehm opened this issue May 18, 2022 · 2 comments
Closed

New LogConstructur causes all loggers to report the same metadata #1908

maboehm opened this issue May 18, 2022 · 2 comments

Comments

@maboehm
Copy link

maboehm commented May 18, 2022

After upgrading to v0.12.0 all our reconciler loggers have the same controller, controllerGroup and controllerKind set.

I believe this is caused by https://github.com/kubernetes-sigs/controller-runtime/blob/master/pkg/builder/controller.go#L312, where it should be log := or maybe to avoid confusion name the variable differently. This was introduced with #1827.
I guess it is done similarly here: https://github.com/kubernetes-sigs/controller-runtime/blob/master/pkg/controller/controller.go#L110

@maboehm
Copy link
Author

maboehm commented May 18, 2022

seems like #1907 will be fixing this

@alvaroaleman
Copy link
Member

Fixed in #1907, thanks for the report!

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

No branches or pull requests

2 participants