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
jaime 2024-02-12 08:32:51 +08:00 committed by GitHub
parent bb93b22c84
commit 84566dcb11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -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.