core: better Message.__repr__.

pull/35/head
David Wilson 7 years ago
parent b7f5bd82bc
commit 9ce71a546a

@ -199,9 +199,9 @@ class Message(object):
raise StreamError('invalid message: %s', ex) raise StreamError('invalid message: %s', ex)
def __repr__(self): def __repr__(self):
return 'Message(%r, %r, %r, %r, %r..)' % ( return 'Message(%r, %r, %r, %r, %r..%d)' % (
self.dst_id, self.src_id, self.handle, self.reply_to, self.dst_id, self.src_id, self.handle, self.reply_to,
(self.data or '')[:50] (self.data or '')[:50], len(self.data)
) )

Loading…
Cancel
Save