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

Logs will not be displayed #72

Open
scott4dev opened this issue Apr 19, 2024 · 1 comment
Open

Logs will not be displayed #72

scott4dev opened this issue Apr 19, 2024 · 1 comment

Comments

@scott4dev
Copy link

I'm trying package: xpkg.upbound.io/coopnorge/provider-github:v0.10.0 and in the console of the provider-github-**** I have this info message

{"level":"info","ts":"2024-04-19T11:30:45Z","logger":"provider-github","msg":"Beta feature enabled","flag":"EnableBetaManagementPolicies"}
[controller-runtime] log.SetLogger(...) was never called; logs will not be displayed.
Detected at:
	>  goroutine 648 [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(0xc00054fb00, {0xc000ca2540, 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:332
	>  sigs.k8s.io/controller-runtime/pkg/builder.(*Builder).doController.func1(0xc000ca2520)
	>  	sigs.k8s.io/[email protected]/pkg/builder/controller.go:400 +0x173
	>  sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000678aa0, {0x22f4c80, 0xc000548be0}, {0x1d3d060?, 0xc000ca2500?})
	>  	sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:306 +0x16a
	>  sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000678aa0, {0x22f4c80, 0xc000548be0})
	>  	sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:266 +0x1af
	>  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 98
	>  	sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:223 +0x565
@lacroi-m-insta
Copy link
Contributor

Have you tried running the application with the --debug flag ?

If you are running in kubernetes your DeploymentRuntimeConfig would look like this:

spec:
  deploymentTemplate:
    spec:
      template:
        spec:
          containers:
          - args:
            - -d

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