[Zodb-checkins] CVS: Zope2/lib/python/ZODB - Transaction.py:1.30

andreas@serenade.digicool.com andreas@serenade.digicool.com
Mon, 4 Jun 2001 14:25:38 -0400


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory serenade:/tmp/cvs-serv16662/lib/python/ZODB

Modified Files:
	Transaction.py 
Log Message:
made Connection.tpc_abort() a bit more noisy in case of failure
(Collector #2277)



--- Updated File Transaction.py in package Zope2/lib/python/ZODB --
--- Transaction.py	2001/06/04 12:28:46	1.29
+++ Transaction.py	2001/06/04 18:25:38	1.30
@@ -368,8 +368,12 @@
                     jarsv = jars.values()
                 for j in jarsv:
                     try: j.tpc_abort(self) # This should never fail
-                    except: pass
-
+                    except:     
+                        LOG('ZODB', ERROR,
+                            "A storage error occured during object abort "
+                            "This shouldn\'t happen. ",
+                            error=sys.exc_info())
+                
                 # Ugh, we need to abort work done in sub-transactions.
                 while subjars:
                     j=subjars.pop()