mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Improve "rasied file descriptor limit..." log (#10970)
* Improvement to raise file descriptor log * Radek feedback * Change to debug
This commit is contained in:
parent
49e5e73ec0
commit
2a5f05bc29
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user