[Zope-Checkins]
SVN: Zope/branches/2.9/lib/python/OFS/subscribers.py
remove zLOG use.
Chris Withers
chris at simplistix.co.uk
Mon May 1 10:14:27 EDT 2006
Log message for revision 67798:
remove zLOG use.
Changed:
U Zope/branches/2.9/lib/python/OFS/subscribers.py
-=-
Modified: Zope/branches/2.9/lib/python/OFS/subscribers.py
===================================================================
--- Zope/branches/2.9/lib/python/OFS/subscribers.py 2006-05-01 14:12:47 UTC (rev 67797)
+++ Zope/branches/2.9/lib/python/OFS/subscribers.py 2006-05-01 14:14:26 UTC (rev 67798)
@@ -18,9 +18,8 @@
"""
import warnings
-import sys
+from logging import getLogger
-from zLOG import LOG, ERROR
from Acquisition import aq_base
from App.config import getConfiguration
from AccessControl import getSecurityManager
@@ -35,6 +34,7 @@
deprecatedManageAddDeleteClasses = []
+LOG = getLogger('OFS.subscribers')
def compatibilityCall(method_name, *args):
"""Call a method if events have not been setup yet.
@@ -152,7 +152,7 @@
except ConflictError:
raise
except:
- LOG('Zope', ERROR, '_delObject() threw', error=sys.exc_info())
+ LOG.error('_delObject() threw', exc_info=True)
# In debug mode when non-Manager, let exceptions propagate.
if getConfiguration().debug_mode:
if not getSecurityManager().getUser().has_role('Manager'):
More information about the Zope-Checkins
mailing list