fix: Fix ineffective log level setting in ThreadWatcher (#41886)

issue: https://github.com/milvus-io/milvus/issues/41781

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
This commit is contained in:
yihao.dai 2025-05-20 21:22:24 +08:00 committed by GitHub
parent 142bd2fc05
commit 3f85d376dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,6 @@
package metrics package metrics
import ( import (
"context"
"os" "os"
"sync" "sync"
"time" "time"
@ -56,7 +55,6 @@ func (thw *threadWatcher) Start() {
} }
func (thw *threadWatcher) watchThreadNum() { func (thw *threadWatcher) watchThreadNum() {
log := log.Ctx(context.TODO())
ticker := time.NewTicker(time.Second * 30) ticker := time.NewTicker(time.Second * 30)
defer ticker.Stop() defer ticker.Stop()
pid := os.Getpid() pid := os.Getpid()