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

improve log legibility #549

Closed
wants to merge 1 commit into from

Conversation

cameronmwall
Copy link
Contributor

@cameronmwall cameronmwall commented Nov 16, 2023

this change updates log format for improved log legibility
https://issues.redhat.com/browse/ACM-8351

Signed-off-by: Cameron Wall <[email protected]>

improve log legibility

Signed-off-by: Cameron Wall <[email protected]>
Copy link
Contributor

openshift-ci bot commented Nov 16, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cameronmwall

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@cameronmwall
Copy link
Contributor Author

/hold

Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

60.0% 60.0% Coverage
0.0% 0.0% Duplication

@dislbenn
Copy link
Collaborator

@cameronmwall I was testing the image and I see the following error:

sigs.k8s.io/controller-runtime/pkg/log.(*delegatingLogSink).WithName(0xc0003f1a40, {0x1b1d88b, 0x9})
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/log/deleg.go:147 +0x4c
github.com/go-logr/logr.Logger.WithName(...)
/go/pkg/mod/github.com/go-logr/[email protected]/logr.go:336
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).getLogger.func1()
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/webhook/admission/webhook.go:182 +0x63
sync.(*Once).doSlow(0x0?, 0xc00049e500?)
/usr/local/go/src/sync/once.go:74 +0xc2
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:65
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).getLogger(0xc0002fec80?, 0xc0002b6000?)
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/webhook/admission/webhook.go:180 +0x53
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*Webhook).ServeHTTP(0xc0002fec80, {0x7fc0d1aa87f8?, 0xc000466500}, 0xc0005b6700)
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/webhook/admission/http.go:96 +0xc34
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1({0x7fc0d1aa87f8, 0xc000466500}, 0x1dedf00?)
/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/promhttp/instrument_server.go:60 +0xd4
net/http.HandlerFunc.ServeHTTP(0x1dedf60?, {0x7fc0d1aa87f8?, 0xc000466500?}, 0xc0000fd828?)
/usr/local/go/src/net/http/server.go:2122 +0x2f
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1({0x1dedf60?, 0xc0005fe1c0?}, 0xc0005b6700)
/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/promhttp/instrument_server.go:147 +0xc5
net/http.HandlerFunc.ServeHTTP(0x7d9205?, {0x1dedf60?, 0xc0005fe1c0?}, 0x40dd48?)
/usr/local/go/src/net/http/server.go:2122 +0x2f
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2({0x1dedf60, 0xc0005fe1c0}, 0xc0005b6700)
/go/pkg/mod/github.com/prometheus/[email protected]/prometheus/promhttp/instrument_server.go:109 +0xc7
net/http.HandlerFunc.ServeHTTP(0xc0005fe1c0?, {0x1dedf60?, 0xc0005fe1c0?}, 0x1b197be?)
/usr/local/go/src/net/http/server.go:2122 +0x2f
net/http.(*ServeMux).ServeHTTP(0xc0005a83ff?, {0x1dedf60, 0xc0005fe1c0}, 0xc0005b6700)
/usr/local/go/src/net/http/server.go:2500 +0x149
net/http.serverHandler.ServeHTTP({0x1de0120?}, {0x1dedf60, 0xc0005fe1c0}, 0xc0005b6700)
/usr/local/go/src/net/http/server.go:2936 +0x316
net/http.(*conn).serve(0xc000512510, {0x1deebc0, 0xc0008c1500})
/usr/local/go/src/net/http/server.go:1995 +0x612
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3089 +0x5ed
I1120 20:04:33.078489 1 multiclusterengine_webhook.go:199] validate updatenamemulticlusterengine
I1120 20:04:33.078502 1 multiclusterengine_webhook.go:202] multicluster-engine

It seems like we would be missing additional logs within the MCE oeprator?

@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@cameronmwall cameronmwall deleted the log-update branch December 11, 2023 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants