Commit a3077d9d authored by Alexandre Boeglin's avatar Alexandre Boeglin

Provided by Patrick Gerken: push the exception tracaback in ZODB Site Error

Log, when a activity fails.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7117 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0f42911a
......@@ -189,6 +189,9 @@ class Message:
LOG('ActivityTool', WARNING,
'Could not call method %s on object %s' % (
self.method_id, self.object_path), error=sys.exc_info())
# push the error in ZODB error_log
if hasattr(activity_tool, 'error_log'):
activity_tool.error_log.raising(sys.exc_info())
def validate(self, activity, activity_tool):
return activity.validate(activity_tool, self, **self.activity_kw)
......
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