Skip to content

[Bug] Logger header keeps piling up #3620

@realshuting

Description

@realshuting

Kyverno Version

1.6.x

Kubernetes Version

1.23.x

Kubernetes Platform

KinD

Kyverno Rule Type

Other

Description

This issue occurs on the main branch (1.7-dev) and I saw the following log header kept piling up at log level 4.

Initially there's only a few (2, 3 handlerFunc):

I0418 09:09:10.918355       1 admission.go:70] WebhookServer/handlerFunc/handlerFunc/handlerFunc "msg"="admission review request processed" "kind"={"group":"coordination.k8s.io","version":"v1","kind":"Lease"} "name"="kyverno" "namespace"="kyverno" "operation"="UPDATE" "uid"="3bb8996e-d6fb-4c5f-9b3a-4f40788e2958" "time"="206.606µs"

See handlerFunc kept being printed after a few seconds:

I0418 09:09:43.049817       1 admission.go:70] WebhookServer/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc/handlerFunc "msg"="admission review request processed" "kind"={"group":"coordination.k8s.io","version":"v1","kind":"Lease"} "name"="kyverno" "namespace"="kyverno" "operation"="UPDATE" "uid"="94a45d8e-7c66-4fff-9adf-8317a9e135ae" "time"="810.804µs"

Steps to reproduce

  1. Build and run latest Kyverno, with log level set to 4
  2. Check the log.

Expected behavior

Log header should just print once.

Screenshots

No response

Kyverno logs

No response

Slack discussion

No response

Troubleshooting

  • I have read and followed the documentation AND the troubleshooting guide.
  • I have searched other issues in this repository and mine is not recorded.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions