Skip to content

Commit

Permalink
wip: force operator verbose logs
Browse files Browse the repository at this point in the history
this commit will never merge.

the operatorLogLevel configuration has not worked for a while, so to
help troubleshoot OCPBUGS-37505 we're forcing it to 5 on startup.
  • Loading branch information
flavianmissi committed Aug 8, 2024
1 parent 6105ec7 commit 8cc1f08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/cluster-image-registry-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ func main() {
_ = logstderr.Value.Set("true")
}

if err := klogFlags.Set("v", "5"); err != nil {
klog.Errorf("%v", err)
os.Exit(1)
}

watchedFileChanged := make(chan struct{})
ctx, cancel := context.WithCancel(context.Background())
stopCh := signals.SetupSignalHandler()
Expand Down
1 change: 1 addition & 0 deletions manifests/07-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
- --files=/var/run/configmaps/trusted-ca/tls-ca-bundle.pem
- --files=/etc/secrets/tls.crt
- --files=/etc/secrets/tls.key
- -v=5
image: docker.io/openshift/origin-cluster-image-registry-operator:latest
ports:
- containerPort: 60000
Expand Down

0 comments on commit 8cc1f08

Please sign in to comment.