From a2aa6d6c517f9af9fa3ec74ba41e03d28b401380 Mon Sep 17 00:00:00 2001 From: dawn-to-dusk <1927529251@qq.com> Date: Wed, 22 Jul 2020 11:08:42 +0800 Subject: [PATCH] perf(app):add log output about ulimit Add a log which will output the value of ulimit. --- internal/app/bitxhub.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/app/bitxhub.go b/internal/app/bitxhub.go index 7b50618..90fb4ff 100644 --- a/internal/app/bitxhub.go +++ b/internal/app/bitxhub.go @@ -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 }