Commit 0919e3a3 authored by Łukasz Nowak's avatar Łukasz Nowak

- use loglevel info

 - fix generation of files to be rotated


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45636 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent eae52459
...@@ -108,7 +108,7 @@ class Recipe(BaseSlapRecipe): ...@@ -108,7 +108,7 @@ class Recipe(BaseSlapRecipe):
open(os.path.join(self.logrotate_d, name), 'w').write( open(os.path.join(self.logrotate_d, name), 'w').write(
self.substituteTemplate(self.getTemplateFilename( self.substituteTemplate(self.getTemplateFilename(
'logrotate_entry.in'), 'logrotate_entry.in'),
dict(file_list=['"'+q+'"' for q in log_file_list], dict(file_list=' '.join(['"'+q+'"' for q in log_file_list]),
postrotate=postrotate_script))) postrotate=postrotate_script)))
def linkBinary(self): def linkBinary(self):
...@@ -266,7 +266,7 @@ class Recipe(BaseSlapRecipe): ...@@ -266,7 +266,7 @@ class Recipe(BaseSlapRecipe):
__name__ + '.execute', 'execute')], self.ws, sys.executable, __name__ + '.execute', 'execute')], self.ws, sys.executable,
self.wrapper_directory, arguments=[ self.wrapper_directory, arguments=[
self.options['dcrond_binary'].strip(), '-s', cron_d, '-c', crontabs, self.options['dcrond_binary'].strip(), '-s', cron_d, '-c', crontabs,
'-t', timestamps, '-L', logfile, '-f', '-l', '10'] '-t', timestamps, '-L', logfile, '-f', '-l', '6']
)[0] )[0]
self.path_list.append(wrapper) self.path_list.append(wrapper)
return cron_d return cron_d
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment