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"
|
"os"
|
||||||
|
|
||||||
"github.com/shirou/gopsutil/v3/process"
|
"github.com/shirou/gopsutil/v3/process"
|
||||||
|
"github.com/sirupsen/logrus"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/milvus-io/milvus/pkg/log"
|
"github.com/milvus-io/milvus/pkg/log"
|
||||||
|
@ -34,6 +35,9 @@ func init() {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// avoid to output a lot of error logs from cgroups package
|
||||||
|
logrus.SetLevel(logrus.PanicLevel)
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetUsedMemoryCount returns the memory usage in bytes.
|
// GetUsedMemoryCount returns the memory usage in bytes.
|
||||||
|
|
Loading…
Reference in New Issue