mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-07 09:38:39 +08:00
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:
parent
142bd2fc05
commit
3f85d376dd
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user