Commit 09750f28 authored by Fred Drake's avatar Fred Drake

switch zLOG --> logging

parent 34fa04bc
......@@ -36,9 +36,10 @@ def default__class_init__(self):
try: classname = '%s.%s' % (
self.__module__, self.__name__)
except AttributeError: classname = `self`
from zLOG import LOG, WARNING
LOG('Init', WARNING, 'Ambiguous name for method of %s: '
'"%s" != "%s"' % (classname, d['__name__'], name))
import logging
logging.getLogger("Init").warning(
'Ambiguous name for method of %s: %r != %r',
classname, d['__name__'], name)
else:
# Supply a name implicitly so that the method can
# find the security assertions on its container.
......
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