13 Star 0 Fork 23

src-openEuler/etcd

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0010-backport-Suppress-noisy-basic-auth-token-deletion-log.patch 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
From 0a960a272d46fa3c1d4929543efdfb673f47d37f Mon Sep 17 00:00:00 2001
From: Ahmet Alp Balkan <ahmet@linkedin.com>
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 <ahmet@linkedin.com>
---
auth/simple_token.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/auth/simple_token.go b/auth/simple_token.go
index a9dc5b7..364aba2 100644
--- a/auth/simple_token.go
+++ b/auth/simple_token.go
@@ -166,7 +166,7 @@ func (t *tokenSimple) enable() {
delf := func(tk string) {
if username, ok := t.simpleTokens[tk]; ok {
if t.lg != nil {
- t.lg.Info(
+ t.lg.Debug(
"deleted a simple token",
zap.String("user-name", username),
zap.String("token", tk),
--
2.9.3.windows.1
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/etcd.git
git@gitee.com:src-openeuler/etcd.git
src-openeuler
etcd
etcd
master

搜索帮助