core: better Message.__repr__.

This commit is contained in:
David Wilson 2017-09-21 02:37:27 +05:30
parent 2a365aa9b0
commit 74b31bbe47
1 changed files with 2 additions and 2 deletions

View File

@ -199,9 +199,9 @@ class Message(object):
raise StreamError('invalid message: %s', ex)
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.data or '')[:50]
(self.data or '')[:50], len(self.data)
)