Fix the repr() of messages for logging
This commit is contained in:
parent
8fe39540a4
commit
697e311ce7
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ def other_elems(self):
|
||||||
fields = message_fields.split()
|
fields = message_fields.split()
|
||||||
fields.remove('old_message')
|
fields.remove('old_message')
|
||||||
for field in fields:
|
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=')
|
return (', '.join(acc) + ', old_message=')
|
||||||
|
|
||||||
def repr_message(self):
|
def repr_message(self):
|
||||||
|
|
Loading…
Reference in a new issue