From d9903cdd7204298866098fff9430e96a02c05276 Mon Sep 17 00:00:00 2001
From: Vincent Pelletier <vincent@nexedi.com>
Date: Thu, 7 Feb 2008 13:04:48 +0000
Subject: [PATCH] Display traceback in error log.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19123 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/CMFActivity/ActiveObject.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/product/CMFActivity/ActiveObject.py b/product/CMFActivity/ActiveObject.py
index c2c5471cf23..2b315bb9bbd 100644
--- a/product/CMFActivity/ActiveObject.py
+++ b/product/CMFActivity/ActiveObject.py
@@ -39,6 +39,7 @@ except ImportError:
   from Products.CMFCore import CMFCorePermissions as permissions
 
 from zLOG import LOG, WARNING
+import sys
 
 DEFAULT_ACTIVITY = 'SQLDict'
 
@@ -138,7 +139,8 @@ class ActiveObject(ExtensionClass.Base):
       raise
     except:
       LOG("CMFActivity", WARNING,
-          'could not create activity for %s' % self.getRelativeUrl())
+          'could not create activity for %s' % self.getRelativeUrl(),
+          error=sys.exc_info())
       # If the portal_activities were not created
       # return a passive object
       if passive_commit: get_transaction().commit()
-- 
2.30.9