Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Controller runtime complains about SetLogger never called #175

Open
mortenlj opened this issue Oct 26, 2023 · 0 comments
Open

Controller runtime complains about SetLogger never called #175

mortenlj opened this issue Oct 26, 2023 · 0 comments

Comments

@mortenlj
Copy link
Contributor

Something is complaining that log.SetLogger was never called, but we have lots of logs.
Probably means something in controller-runtime needs to be configured or disabled ...

[controller-runtime] log.SetLogger(...) was never called, logs will not be displayed:
goroutine 148 [running]:
runtime/debug.Stack()
	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.0/pkg/log/log.go:59 +0xcd
sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithValues(0xc000270580, {0xc0033500e0, 0x2, 0x2})
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.0/pkg/log/deleg.go:168 +0x49
github.com/go-logr/logr.Logger.WithValues(...)
	/go/pkg/mod/github.com/go-logr/logr@v1.2.4/logr.go:323
sigs.k8s.io/controller-runtime/pkg/builder.(*Builder).doController.func1(0xc0033500c0)
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.0/pkg/builder/controller.go:398 +0x173
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc0003c1180, {0x1be33e0, 0xc000017f90}, {0x17bd380?, 0xc0033500a0?})
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.0/pkg/internal/controller/controller.go:305 +0x16a
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc0003c1180, {0x1be33e0, 0xc000017f90})
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.0/pkg/internal/controller/controller.go:265 +0x1c9
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.0/pkg/internal/controller/controller.go:226 +0x79
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 in goroutine 96
	/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.15.0/pkg/internal/controller/controller.go:222 +0x565
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant