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
parent 1c22e7b36b
commit ec289a8129

View File

@ -168,7 +168,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),