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

[controller-runtime] log.SetLogger(...) was never called; logs will not be displayed. #2081

Closed
kubevalet opened this issue Jul 17, 2024 · 2 comments · Fixed by #2099
Closed
Labels
bug Something isn't working

Comments

@kubevalet
Copy link

kubevalet commented Jul 17, 2024

With latest 0.48.1 release

[controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
Detected at:
	>  goroutine 4294 [running]:
	>  runtime/debug.Stack()
	>  	runtime/debug/stack.go:24 +0x5e
	>  sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
	>  	sigs.k8s.io/[email protected]/pkg/log/log.go:60 +0xcd
	>  sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithValues(0xc000952f40, {0xc00356c140, 0x2, 0x2})
	>  	sigs.k8s.io/[email protected]/pkg/log/deleg.go:168 +0x49
	>  github.com/go-logr/logr.Logger.WithValues(...)
	>  	github.com/go-logr/[email protected]/logr.go:323
	>  sigs.k8s.io/controller-runtime/pkg/builder.(*Builder).doController.func1(0xc00356c120)
	>  	sigs.k8s.io/[email protected]/pkg/builder/controller.go:400 +0x173
	>  sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000938d20, {0x787f8b8, 0xc00049b4f0}, {0x64dd720?, 0xc000e2f300?})
	>  	sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:306 +0x16a
	>  sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000938d20, {0x787f8b8, 0xc00049b4f0})
	>  	sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266 +0x1c9
	>  sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
	>  	sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:227 +0x79
	>  created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2 in goroutine 635
	>  	sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:223 +0x565
@kubevalet kubevalet added the bug Something isn't working label Jul 17, 2024
@MisterMX
Copy link
Collaborator

I think this is only happening when the provider is run without the --debug flag.

@bobh66
Copy link
Contributor

bobh66 commented Jul 24, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants