Commit 57876fc8 authored by Vincent Pelletier's avatar Vincent Pelletier

Display traceback information when connector raises (it's most useful when...

Display traceback information when connector raises (it's most useful when debuging inside an error handling code branch).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19528 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e7dde761
...@@ -26,6 +26,7 @@ from Acquisition import aq_base ...@@ -26,6 +26,7 @@ from Acquisition import aq_base
from zLOG import LOG, INFO, ERROR from zLOG import LOG, INFO, ERROR
from string import find from string import find
from cStringIO import StringIO from cStringIO import StringIO
import sys
def DA_fromFile(self, filename): def DA_fromFile(self, filename):
""" """
...@@ -218,7 +219,7 @@ def DA__call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, **kw): ...@@ -218,7 +219,7 @@ def DA__call__(self, REQUEST=None, __ick__=None, src__=0, test__=0, **kw):
# LOG("DA query", INFO, "query = %s" %(query,)) # LOG("DA query", INFO, "query = %s" %(query,))
result=DB__.query(query, self.max_rows_) result=DB__.query(query, self.max_rows_)
except: 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 raise
if hasattr(self, '_v_brain'): brain=self._v_brain if hasattr(self, '_v_brain'): brain=self._v_brain
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment