Commit 01ca1d4c authored by Chris Withers's avatar Chris Withers

remove zLOG use.

parent 77e086c8
......@@ -18,9 +18,8 @@ $Id$
"""
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 @@ from zope.app.location.interfaces import ISublocations
deprecatedManageAddDeleteClasses = []
LOG = getLogger('OFS.subscribers')
def compatibilityCall(method_name, *args):
"""Call a method if events have not been setup yet.
......@@ -152,7 +152,7 @@ def callManageBeforeDelete(ob, item, container):
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'):
......
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