Commit 568f05e9 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix behaviour with logrotate (rotating failed because logging.FileHandler does...

Fix behaviour with logrotate (rotating failed because logging.FileHandler does not have "reopen" method).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24544 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9336a571
...@@ -105,7 +105,8 @@ if instancehome is not None: ...@@ -105,7 +105,8 @@ if instancehome is not None:
log_directory = os.path.join(instancehome, 'log') log_directory = os.path.join(instancehome, 'log')
if os.path.isdir(log_directory): if os.path.isdir(log_directory):
from Signals import Signals from Signals import Signals
log_file_handler = logging.FileHandler(os.path.join(log_directory, 'CMFActivity.log')) from ZConfig.components.logger.loghandler import FileHandler
log_file_handler = FileHandler(os.path.join(log_directory, 'CMFActivity.log'))
# Default zope log format string borrowed from # Default zope log format string borrowed from
# ZConfig/components/logger/factory.xml, but without the extra "------" # ZConfig/components/logger/factory.xml, but without the extra "------"
# line separating entries. # line separating entries.
......
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