[Zope3-checkins] CVS: Zope3/lib/python/Zope/PageTemplate - PageTemplateFile.py:1.6

Tim Peters tim.one@comcast.net
Thu, 19 Dec 2002 16:56:42 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/PageTemplate
In directory cvs.zope.org:/tmp/cvs-serv6480/lib/python/Zope/PageTemplate

Modified Files:
	PageTemplateFile.py 
Log Message:
More logging.  The old call here appeared to have an error:  a msg detail
got constructed, but not interpolated into the error msg.  Tried to fix
that too.


=== Zope3/lib/python/Zope/PageTemplate/PageTemplateFile.py 1.5 => 1.6 ===
--- Zope3/lib/python/Zope/PageTemplate/PageTemplateFile.py:1.5	Tue Oct 22 15:04:40 2002
+++ Zope3/lib/python/Zope/PageTemplate/PageTemplateFile.py	Thu Dec 19 16:56:41 2002
@@ -21,7 +21,8 @@
 __version__ = '$Revision$'[11:-2]
 
 import os, sys
-from zLOG import LOG, ERROR, INFO
+import logging
+
 from PageTemplate import PageTemplate
 
 def package_home(gdict):
@@ -54,7 +55,7 @@
         self.pt_edit(open(self.filename), None)
         self._cook()
         if self._v_errors:
-            LOG('PageTemplateFile', ERROR, 'Error in template',
+            logging.error('PageTemplateFile: Error in template: %s',
                 '\n'.join(self._v_errors))
             return
         self._v_last_read = mtime