[Checkins] SVN: zope.error/trunk/ Set copy_to_zlog by default to 1/True.
Adam Groszer
agroszer at gmail.com
Sat Oct 30 11:21:49 EDT 2010
Log message for revision 118024:
Set copy_to_zlog by default to 1/True.
Changed:
U zope.error/trunk/CHANGES.txt
U zope.error/trunk/src/zope/error/error.py
U zope.error/trunk/src/zope/error/interfaces.py
-=-
Modified: zope.error/trunk/CHANGES.txt
===================================================================
--- zope.error/trunk/CHANGES.txt 2010-10-30 09:14:39 UTC (rev 118023)
+++ zope.error/trunk/CHANGES.txt 2010-10-30 15:21:47 UTC (rev 118024)
@@ -5,7 +5,9 @@
3.7.2 (unreleased)
------------------
-- Nothing changed yet.
+- Set ``copy_to_zlog`` by default to 1/True.
+ Having it turned off is a small problem, because fatal (startup) errors
+ will not get logged anywhere.
3.7.1 (2010-09-25)
Modified: zope.error/trunk/src/zope/error/error.py
===================================================================
--- zope.error/trunk/src/zope/error/error.py 2010-10-30 09:14:39 UTC (rev 118023)
+++ zope.error/trunk/src/zope/error/error.py 2010-10-30 15:21:47 UTC (rev 118024)
@@ -95,7 +95,7 @@
__parent__ = __name__ = None
keep_entries = 20
- copy_to_zlog = 0
+ copy_to_zlog = 1
_ignored_exceptions = ('Unauthorized',)
@@ -231,7 +231,7 @@
'ignored_exceptions': self._ignored_exceptions,
}
- def setProperties(self, keep_entries, copy_to_zlog=0,
+ def setProperties(self, keep_entries, copy_to_zlog=1,
ignored_exceptions=()):
"""Sets the properties of this site error log.
"""
Modified: zope.error/trunk/src/zope/error/interfaces.py
===================================================================
--- zope.error/trunk/src/zope/error/interfaces.py 2010-10-30 09:14:39 UTC (rev 118023)
+++ zope.error/trunk/src/zope/error/interfaces.py 2010-10-30 15:21:47 UTC (rev 118024)
@@ -36,7 +36,7 @@
keep_entries, copy_to_logfile, ignored_exceptions
"""
- def setProperties(keep_entries, copy_to_zlog=0, ignored_exceptions=(),
+ def setProperties(keep_entries, copy_to_zlog=1, ignored_exceptions=(),
RESPONSE=None):
"""Sets the properties
More information about the checkins
mailing list