Log message for revision 41194:
  zLOG -> logging

Changed:
  U   Zope/trunk/lib/python/TAL/XMLParser.py

-=-
Modified: Zope/trunk/lib/python/TAL/XMLParser.py
===================================================================
--- Zope/trunk/lib/python/TAL/XMLParser.py      2006-01-08 10:27:02 UTC (rev 
41193)
+++ Zope/trunk/lib/python/TAL/XMLParser.py      2006-01-08 10:28:31 UTC (rev 
41194)
@@ -16,9 +16,10 @@
 """
 
 import xml.parsers.expat
+from logging import getLogger
 
-import zLOG
 
+LOG = getLogger('TAL')
 
 XMLParseError = xml.parsers.expat.ExpatError
 
@@ -56,8 +57,7 @@
             try:
                 self.parser.ordered_attributes = self.ordered_attributes
             except AttributeError:
-                zLOG.LOG("TAL.XMLParser", zLOG.INFO, 
-                         "Can't set ordered_attributes")
+                LOG.info("Can't set ordered_attributes")
                 self.ordered_attributes = 0
         for name in self.handler_names:
             method = getattr(self, name, None)
@@ -65,8 +65,7 @@
                 try:
                     setattr(p, name, method)
                 except AttributeError:
-                    zLOG.LOG("TAL.XMLParser", zLOG.PROBLEM,
-                             "Can't set expat handler %s" % name)
+                    LOG.error("Can't set expat handler %s" % name)
 
     def createParser(self, encoding=None):
         return xml.parsers.expat.ParserCreate(encoding, ' ')

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to