[Zope-Checkins] CVS: Zope/lib/python/App - class_init.py:1.16

Fred L. Drake, Jr. fred at zope.com
Fri Apr 23 11:02:52 EDT 2004


Update of /cvs-repository/Zope/lib/python/App
In directory cvs.zope.org:/tmp/cvs-serv28686

Modified Files:
	class_init.py 
Log Message:
switch zLOG --> logging


=== Zope/lib/python/App/class_init.py 1.15 => 1.16 ===
--- Zope/lib/python/App/class_init.py:1.15	Fri Nov 28 11:45:22 2003
+++ Zope/lib/python/App/class_init.py	Fri Apr 23 11:02:51 2004
@@ -36,9 +36,10 @@
                     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.




More information about the Zope-Checkins mailing list