From 9da3bea48ba01fd9e6b4b1d7a43d1f68160acffd Mon Sep 17 00:00:00 2001 From: Colton Myers Date: Wed, 15 May 2013 16:18:51 -0600 Subject: [PATCH] Move max open files to info log, not warning --- salt/master.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/salt/master.py b/salt/master.py index c45ff5e06d..ad43c119ea 100644 --- a/salt/master.py +++ b/salt/master.py @@ -244,7 +244,7 @@ class Master(SMaster): mof_c = self.opts['max_open_files'] if mof_c > mof_h: # The configured value is higher than what's allowed - log.warning( + log.info( 'The value for the \'max_open_files\' setting, {0}, is higher ' 'than what the user running salt is allowed to raise to, {1}. ' 'Defaulting to {1}.'.format(mof_c, mof_h) @@ -253,11 +253,11 @@ class Master(SMaster): if mof_s < mof_c: # There's room to raise the value. Raise it! - log.warning('Raising max open files value to {0}'.format(mof_c)) + log.info('Raising max open files value to {0}'.format(mof_c)) resource.setrlimit(resource.RLIMIT_NOFILE, (mof_c, mof_h)) try: mof_s, mof_h = resource.getrlimit(resource.RLIMIT_NOFILE) - log.warning( + log.info( 'New values for max open files soft/hard values: ' '{0}/{1}'.format(mof_s, mof_h) )