eventing icon indicating copy to clipboard operation
eventing copied to clipboard

Add flag to enable KLOG verbosity levels

Open rh-hemartin opened this issue 4 months ago • 2 comments

Problem I had problems with the ApiServerSource pod that required me to change the code to enable verbosity on the k8s tooling usin klog. I had to introduce this block of code to the cmd of the adapter:

var fs flag.FlagSet
klog.InitFlags(&fs)
err := fs.Set("v", "7")
if err != nil {
	return fmt.Errorf("error setting klog level to '%s': %s", klogLevel, err)
}

It would be nice to have a way to set this klog verbosity level, probably via the config-logging ConfigMap on knative-eventing too keep everything consistent.

Persona:

Event Consumer

Exit Criteria A measurable (binary) test that would indicate that the problem has been resolved.

Time Estimate (optional):

1-2 days depending on the development of tests (not sure if it is possible to test the level klog is at).

Additional context (optional) Add any other context about the feature request here.

rh-hemartin avatar Sep 09 '25 11:09 rh-hemartin

This issue is stale because it has been open for 90 days with no activity. It will automatically close after 30 more days of inactivity. Reopen the issue with /reopen. Mark the issue as fresh by adding the comment /remove-lifecycle stale.

github-actions[bot] avatar Dec 09 '25 01:12 github-actions[bot]

/remove-lifecycle stale

creydr avatar Dec 09 '25 08:12 creydr