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

log.SetLogger(...) was never called #311

Closed
MegaByte875 opened this issue Oct 6, 2023 · 1 comment
Closed

log.SetLogger(...) was never called #311

MegaByte875 opened this issue Oct 6, 2023 · 1 comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected

Comments

@MegaByte875
Copy link
Contributor

Please check the FAQ documentation before raising an issue

Describe the bug (required)
[controller-runtime] log.SetLogger(...) was never called, logs will not be displayed:
goroutine 635 [running]:
runtime/debug.Stack()
runtime/debug/stack.go:24 +0x65
sigs.k8s.io/controller-runtime/pkg/log.eventuallyFulfillRoot()
sigs.k8s.io/[email protected]/pkg/log/log.go:59 +0xbd
sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0xc000407e40, {0x249e50e, 0x9})
sigs.k8s.io/[email protected]/pkg/log/deleg.go:147 +0x4c
github.com/go-logr/logr.Logger.WithName(...)
github.com/go-logr/[email protected]/logr.go:336
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).getLogger.func1()
sigs.k8s.io/[email protected]/pkg/webhook/admission/webhook.go:182 +0x63
sync.(*Once).doSlow(0x0?, 0xc0004f6050?)
sync/once.go:74 +0xc2
sync.(*Once).Do(...)
sync/once.go:65
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).getLogger(0xc0004f6c30?, 0xc0018c5500?)
sigs.k8s.io/[email protected]/pkg/webhook/admission/webhook.go:180 +0x53
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).ServeHTTP(0xc0004f6c30, {0x7faa32cd8488?, 0xc000816960}, 0xc00179f300)
sigs.k8s.io/[email protected]/pkg/webhook/admission/http.go:96 +0xc34
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1({0x7faa32cd8488, 0xc000816960}, 0x29af500?)
github.com/prometheus/[email protected]/prometheus/promhttp/instrument_server.go:60 +0xd4
net/http.HandlerFunc.ServeHTTP(0x29af550?, {0x7faa32cd8488?, 0xc000816960?}, 0xc00177b828?)
net/http/server.go:2122 +0x2f
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1({0x29af550?, 0xc00052a2a0?}, 0xc00179f300)
github.com/prometheus/[email protected]/prometheus/promhttp/instrument_server.go:147 +0xc5
net/http.HandlerFunc.ServeHTTP(0x70d485?, {0x29af550?, 0xc00052a2a0?}, 0x7faa5a36ca68?)
net/http/server.go:2122 +0x2f
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2({0x29af550, 0xc00052a2a0}, 0xc00179f300)
github.com/prometheus/[email protected]/prometheus/promhttp/instrument_server.go:109 +0xc7
net/http.HandlerFunc.ServeHTTP(0xc00052a2a0?, {0x29af550?, 0xc00052a2a0?}, 0x24a01bf?)
net/http/server.go:2122 +0x2f
net/http.(*ServeMux).ServeHTTP(0xc0017c53cd?, {0x29af550, 0xc00052a2a0}, 0xc00179f300)
net/http/server.go:2500 +0x149
net/http.serverHandler.ServeHTTP({0x299e010?}, {0x29af550, 0xc00052a2a0}, 0xc00179f300)
net/http/server.go:2936 +0x316
net/http.(*conn).serve(0xc00095b8c0, {0x29b0628, 0xc0006fc660})
net/http/server.go:1995 +0x612
created by net/http.(*Server).Serve
net/http/server.go:3089 +0x5ed

Your Environments (required)

  • OS: uname -a
  • Commit id (e.g. a3ffc7d8)

How To Reproduce(required)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

Additional context

@MegaByte875 MegaByte875 added the type/bug Type: something is unexpected label Oct 6, 2023
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Oct 6, 2023
@MegaByte875
Copy link
Contributor Author

#323

@github-actions github-actions bot added the process/fixed Process of bug label Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/fixed Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

1 participant