From a3077d9da7793224ca70f7c161195e8ff2e24e4e Mon Sep 17 00:00:00 2001 From: Alexandre Boeglin <alex@nexedi.com> Date: Mon, 8 May 2006 19:06:45 +0000 Subject: [PATCH] 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 --- product/CMFActivity/ActivityTool.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/product/CMFActivity/ActivityTool.py b/product/CMFActivity/ActivityTool.py index 455006a62e..a095b18933 100644 --- a/product/CMFActivity/ActivityTool.py +++ b/product/CMFActivity/ActivityTool.py @@ -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) -- 2.30.9