mirror of https://github.com/milvus-io/milvus.git
enhance: [skip e2e] set logrus log level to reduce output error logs (#30479)
issue: https://github.com/milvus-io/milvus/issues/30295 Signed-off-by: jaime <yun.zhang@zilliz.com>pull/30601/head
parent
bb93b22c84
commit
84566dcb11
|
@ -21,6 +21,7 @@ import (
|
|||
"os"
|
||||
|
||||
"github.com/shirou/gopsutil/v3/process"
|
||||
"github.com/sirupsen/logrus"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"github.com/milvus-io/milvus/pkg/log"
|
||||
|
@ -34,6 +35,9 @@ func init() {
|
|||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
// avoid to output a lot of error logs from cgroups package
|
||||
logrus.SetLevel(logrus.PanicLevel)
|
||||
}
|
||||
|
||||
// GetUsedMemoryCount returns the memory usage in bytes.
|
||||
|
|
Loading…
Reference in New Issue