keda
keda copied to clipboard
KEDA metrics api server not honoring log level
Report
Exact same issue as #3053 and #2316. Trace logs appear in stdout despite running the pod with -v=0
.
The trace logs look like this:
I1030 16:06:17.184854 1 trace.go:236] Trace[1893921442]: "List" accept:application/vnd.kubernetes.protobuf, */*,audit-id:7da6ab1a-9d01-4c75-b3fc-11fcbee2f159,client:172.16.123.93,protocol:HTTP/2.0,resource:foo-303xx1-5-3022xx1-5,scope:namespace,url:/apis/external.metrics.k8s.io/v1beta1/namespaces/bar/foo-303xx1-5-3022xx1-5,user-agent:kube-controller-manager/v1.27.6 (linux/amd64) kubernetes/b6911bf/system:serviceaccount:kube-system:horizontal-pod-autoscaler,verb:LIST (30-Oct-2023 16:06:16.651) (total time: 533ms):
Trace[1893921442]: ---"Listing from storage done" 533ms (16:06:17.184)
Trace[1893921442]: [533.696851ms] [533.696851ms] END
Expected Behavior
Trace logs should not show up when -v=0
.
Actual Behavior
Trace logs show up when -v=0
.
Steps to Reproduce the Problem
- Deploy keda metrics api server with
-v=0
. - Observe the trace logs in stdout
Logs from KEDA operator
not relevant
KEDA Version
2.12.0
Kubernetes Version
1.27
Platform
Amazon Web Services
Scaler Details
not relevant
Anything else?
No response