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

switch zLOG --> logging

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