Fix the repr() of messages for logging

This commit is contained in:
mathieui 2013-07-01 22:10:30 +02:00
parent 8fe39540a4
commit 697e311ce7

View file

@ -28,7 +28,7 @@ def other_elems(self):
fields = message_fields.split()
fields.remove('old_message')
for field in fields:
acc.append('%s=%s' % (field, getattr(self, field)))
acc.append('%s=%s' % (field, repr(getattr(self, field))))
return (', '.join(acc) + ', old_message=')
def repr_message(self):