apiserver/pkg/util
Patrick Ohly ec795ae204 avoid klog Info calls without verbosity
In the following code pattern, the log message will get logged with v=0 in JSON
output although conceptually it has a higher verbosity:

   if klog.V(5).Enabled() {
       klog.Info("hello world")
   }

Having the actual verbosity in the JSON output is relevant, for example for
filtering out only the important info messages. The solution is to use
klog.V(5).Info or something similar.

Whether the outer if is necessary at all depends on how complex the parameters
are. The return value of klog.V can be captured in a variable and be used
multiple times to avoid the overhead for that function call and to avoid
repeating the verbosity level.

Kubernetes-commit: 9eaa2dc554e0c3d4485d4c916dfdbc2f517db2e0
2021-12-11 12:10:21 +01:00
..
apihelpers apf: update e2e test to use v1beta2 2021-08-16 17:12:42 -04:00
dryrun dry-run: Use dry-runnable structure 2018-06-21 08:49:13 -07:00
feature update import of generic featuregate code from k8s.io/apiserver/pkg/util/feature -> k8s.io/component-base/featuregate 2019-03-04 12:46:52 -05:00
flowcontrol avoid klog Info calls without verbosity 2021-12-11 12:10:21 +01:00
flushwriter sync: initially remove files BUILD */BUILD BUILD.bazel */BUILD.bazel 2018-03-15 09:38:17 +00:00
notfoundhandler aggregator: pass apiServiceRegistrationControllerInitiated signal directly to apiserviceRegistration controller 2021-10-20 11:06:27 +02:00
openapi prune enum when OpenAPIEnums is disabled. 2021-11-09 13:00:00 -08:00
proxy Improve the error message when trying to proxy unsupported service type 2021-11-17 12:24:49 +01:00
shufflesharding Less demanding test cases in TestUniformDistribution 2021-01-25 01:44:08 -05:00
webhook Update unit tests to handle go1.17 certificate parsing error messages 2021-08-17 11:24:03 -04:00
wsstream fix S1019 use of make 2020-06-25 17:26:42 -05:00
x509metrics webhooks,aggregation: add metrics to count certs missing SAN 2020-10-06 13:02:52 +02:00