Skip to content

Commit

Permalink
Silence the "limit %s = %s" app log when not in a start/stop action
Browse files Browse the repository at this point in the history
  • Loading branch information
cvaroqui committed May 29, 2018
1 parent 6707631 commit 1b6e048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,6 @@ def limits(self):
if data[key] > _vg:
_vg = data[key]
resource.setrlimit(rlim, (data[key], _vg))
_vs, _vg = resource.getrlimit(rlim)
self.log.info("limit %s = %s", key, data[key])
return data

def get_timeout(self, action):
Expand All @@ -507,6 +505,8 @@ def _run_cmd_dedicated_log(self, action, cmd):
Poll stdout and stderr to log as soon as new lines are available.
"""
now = datetime.now()
for lim, val in self.limits.items():
self.log.info("set limit %s = %s", lim, val)
kwargs = {
'timeout': self.get_timeout(action),
'logger': self.log,
Expand Down

0 comments on commit 1b6e048

Please sign in to comment.