Commit f5314a57 authored by Julien Muchembled's avatar Julien Muchembled

Log using repr instead of str because it is important that CMFActivity doesn't fail.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27199 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b957f4a
......@@ -1050,7 +1050,7 @@ class ActivityTool (Folder, UniqueObject):
def invoke(self, message):
if self.activity_tracking:
activity_tracking_logger.info('invoking message: object_path=%s, method_id=%s, args=%s, kw=%s, activity_kw=%s, user_name=%s' % ('/'.join(message.object_path), message.method_id, message.args, message.kw, message.activity_kw, message.user_name))
activity_tracking_logger.info('invoking message: object_path=%s, method_id=%s, args=%r, kw=%r, activity_kw=%r, user_name=%s' % ('/'.join(message.object_path), message.method_id, message.args, message.kw, message.activity_kw, message.user_name))
old_localizer_context = False
if getattr(self, 'aq_chain', None) is not None:
# Grab existing acquisition chain and extrach base objects.
......
......@@ -129,7 +129,6 @@ class Message(Persistent):
if isinstance(message, unicode):
message = message.encode('utf-8')
return message
__repr__ = __str__
def __unicode__(self):
"""
......
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