[Zope-CVS] CVS: Products/PageDesign - Slot.py:1.6

Casey Duncan casey@zope.com
Wed, 18 Jun 2003 16:37:09 -0400


Update of /cvs-repository/Products/PageDesign
In directory cvs.zope.org:/tmp/cvs-serv25092

Modified Files:
	Slot.py 
Log Message:
Log exception info to debug log when element fails to render


=== Products/PageDesign/Slot.py 1.5 => 1.6 ===
--- Products/PageDesign/Slot.py:1.5	Thu Feb 27 11:55:40 2003
+++ Products/PageDesign/Slot.py	Wed Jun 18 16:37:07 2003
@@ -189,7 +189,11 @@
                 t = getattr(t, '__name__', t)
                 text = "<code>%s</code>" % (
                     escape(('%s: %s' % (t, v))[:80]))
-
+                from zLOG import LOG, ERROR
+                LOG('Page Design', ERROR,
+                    'Rendering element %d in slot %s raised an error' %
+                    (index, self.getSlotId()), error=sys.exc_info()) 
+   
             if editable:
                 path = '%s/elementSources/%d' % (phys_path, index)
                 move_up_url = move_down_url = ''