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
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()