perf(app):add log output about ulimit

Add a log which will output the value of ulimit.
This commit is contained in:
dawn-to-dusk 2020-07-22 11:08:42 +08:00
parent 7c422198d1
commit a2aa6d6c51
1 changed files with 4 additions and 0 deletions

View File

@ -303,5 +303,9 @@ func (bxh *BitXHub) raiseUlimit(limitNew uint64) error {
return fmt.Errorf("failed to raise ulimit")
}
bxh.logger.WithFields(logrus.Fields{
"ulimit": limit.Cur,
}).Infof("Ulimit raised")
return nil
}