Skip to content

Commit

Permalink
enhance: [skip e2e] set logrus log level to reduce output error logs (m…
Browse files Browse the repository at this point in the history
  • Loading branch information
jaime0815 authored Feb 12, 2024
1 parent bb93b22 commit 84566dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/util/hardware/mem_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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.
Expand Down

0 comments on commit 84566dc

Please sign in to comment.