Commit b7893fcd authored by Jérome Perrin's avatar Jérome Perrin

make error_log copy to event.log by default, also do not hide Unauthorized


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20421 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6bbd9c9d
...@@ -1320,6 +1320,10 @@ class ERP5Generator(PortalGenerator): ...@@ -1320,6 +1320,10 @@ class ERP5Generator(PortalGenerator):
# Add an error_log # Add an error_log
if 'error_log' not in p.objectIds(): if 'error_log' not in p.objectIds():
manage_addErrorLog(p) manage_addErrorLog(p)
p.error_log.setProperties(keep_entries=20,
copy_to_zlog=True,
ignored_exceptions=('NotFound', 'Redirect'))
# Remove unused default actions # Remove unused default actions
def removeActionsFromTool(tool, remove_list): def removeActionsFromTool(tool, remove_list):
......
...@@ -209,7 +209,10 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -209,7 +209,10 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
def test_error_log(self): def test_error_log(self):
self.failUnless('error_log' in self.portal.objectIds()) self.failUnless('error_log' in self.portal.objectIds())
self.failUnless(self.portal.error_log.getProperties()['copy_to_zlog'])
self.failIf('Unauthorized' in
self.portal.error_log.getProperties()['ignored_exceptions'])
def test_03_getDefaultModule(self, quiet=quiet, run=run_all_test): def test_03_getDefaultModule(self, quiet=quiet, run=run_all_test):
""" """
test getDefaultModule method test getDefaultModule method
......
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