From 3f85d376dd4af0103259c2c3a6ac61564075e217 Mon Sep 17 00:00:00 2001 From: "yihao.dai" Date: Tue, 20 May 2025 21:22:24 +0800 Subject: [PATCH] fix: Fix ineffective log level setting in ThreadWatcher (#41886) issue: https://github.com/milvus-io/milvus/issues/41781 Signed-off-by: bigsheeper --- internal/util/metrics/thread.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/internal/util/metrics/thread.go b/internal/util/metrics/thread.go index 23d75116e6..8ad3a4d2da 100644 --- a/internal/util/metrics/thread.go +++ b/internal/util/metrics/thread.go @@ -17,7 +17,6 @@ package metrics import ( - "context" "os" "sync" "time" @@ -56,7 +55,6 @@ func (thw *threadWatcher) Start() { } func (thw *threadWatcher) watchThreadNum() { - log := log.Ctx(context.TODO()) ticker := time.NewTicker(time.Second * 30) defer ticker.Stop() pid := os.Getpid()