Improve "rasied file descriptor limit..." log (#10970)

* Improvement to raise file descriptor log

* Radek feedback

* Change to debug
This commit is contained in:
terencechain 2022-07-01 15:05:01 -07:00 committed by GitHub
parent 49e5e73ec0
commit 2a5f05bc29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,11 @@ package fdlimits
import (
"github.com/ethereum/go-ethereum/common/fdlimit"
log "github.com/sirupsen/logrus"
"github.com/sirupsen/logrus"
)
var log = logrus.WithField("prefix", "fdlimits")
// SetMaxFdLimits is a wrapper around a few go-ethereum methods to allow prysm to
// set its file descriptor limits at the maximum possible value.
func SetMaxFdLimits() error {
@ -20,6 +22,6 @@ func SetMaxFdLimits() error {
if err != nil {
return err
}
log.Infof("Raised fd limit to %d from %d", raisedVal, curr)
log.Debugf("Updated file descriptor limit to %d from %d", raisedVal, curr)
return nil
}