Suppress noisy basic auth token deletion log

Right now the basic auth tokens that are deleted after `--auth-token-ttl`
cause info-level logs to be emitted. Change this to debug. This helps with
the issue at #18244 where calling `/readyz` frequently pollutes the etcd server
logs with this log message.

Fixes #18244.

Signed-off-by: Ahmet Alp Balkan <ahmet@linkedin.com>
This commit is contained in:
Ahmet Alp Balkan 2024-06-28 12:10:04 -07:00 committed by k8s-infra-cherrypick-robot
parent 5b4c548a2c
commit 0a960a272d

View File

@ -167,7 +167,7 @@ func (t *tokenSimple) enable() {
delf := func(tk string) {
if username, ok := t.simpleTokens[tk]; ok {
t.lg.Info(
t.lg.Debug(
"deleted a simple token",
zap.String("user-name", username),
zap.String("token", tk),