From ec289a812937f00024e964ab69bb077309466a4d Mon Sep 17 00:00:00 2001 From: Ahmet Alp Balkan Date: Fri, 28 Jun 2024 12:10:04 -0700 Subject: [PATCH] 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 --- server/auth/simple_token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/auth/simple_token.go b/server/auth/simple_token.go index fb9485b4ff9..f8272b185d9 100644 --- a/server/auth/simple_token.go +++ b/server/auth/simple_token.go @@ -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),