Commit d9903cdd authored by Vincent Pelletier's avatar Vincent Pelletier

Display traceback in error log.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19123 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d1bc9ff0
......@@ -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()
......
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