[Zope-Checkins] CVS: Zope/lib/python/Products/SiteErrorLog - SiteErrorLog.py:1.9

Chris McDonough chrism@zope.com
Sat, 29 Jun 2002 14:46:45 -0400


Update of /cvs-repository/Zope/lib/python/Products/SiteErrorLog
In directory cvs.zope.org:/tmp/cvs-serv18916

Modified Files:
	SiteErrorLog.py 
Log Message:
The placement of the return for showEntry was preventing the error from being copied to the event log, even if the user had chosen to enable copying to the event log.


=== Zope/lib/python/Products/SiteErrorLog/SiteErrorLog.py 1.8 => 1.9 ===
                 finally:
                     cleanup_lock.release()
-                    
-                return '%s/showEntry?id=%s' % (self.absolute_url(), entry_id)
             except:
                 LOG('SiteError', ERROR, 'Error while logging',
                     error=sys.exc_info())
             else:
                 if self.copy_to_zlog:
                     self._do_copy_to_zlog(now,strtype,str(url),info)
+                return '%s/showEntry?id=%s' % (self.absolute_url(), entry_id)
         finally:
             info = None