[Erp5-report] r19528 - /erp5/trunk/products/ERP5Type/patches/DA.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Feb 26 18:06:02 CET 2008
Author: vincent
Date: Tue Feb 26 18:06:01 2008
New Revision: 19528
URL: http://svn.erp5.org?rev=19528&view=rev
Log:
Display traceback information when connector raises (it's most useful when debuging inside an error handling code branch).
Modified:
erp5/trunk/products/ERP5Type/patches/DA.py
Modified: erp5/trunk/products/ERP5Type/patches/DA.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/patches/DA.py?rev=19528&r1=19527&r2=19528&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/patches/DA.py (original)
+++ erp5/trunk/products/ERP5Type/patches/DA.py Tue Feb 26 18:06:01 2008
@@ -26,6 +26,7 @@
from zLOG import LOG, INFO, ERROR
from string import find
from cStringIO import StringIO
+import sys
def DA_fromFile(self, filename):
"""
@@ -218,7 +219,7 @@
# LOG("DA query", INFO, "query = %s" %(query,))
result=DB__.query(query, self.max_rows_)
except:
- LOG("DA call raise", ERROR, "DB = %s, c = %s, query = %s" %(DB__, c, query))
+ LOG("DA call raise", ERROR, "DB = %s, c = %s, query = %s" %(DB__, c, query), error=sys.exc_info())
raise
if hasattr(self, '_v_brain'): brain=self._v_brain
More information about the Erp5-report
mailing list