core: Fix logging crash if data is non-string.

pull/175/head
David Wilson 7 years ago
parent f726ef86de
commit 46a14d4ae2

@ -386,7 +386,7 @@ class Sender(object):
def send(self, data): def send(self, data):
"""Send `data` to the remote.""" """Send `data` to the remote."""
_vv and IOLOG.debug('%r.send(%r..)', self, data[:100]) _vv and IOLOG.debug('%r.send(%r..)', self, repr(data)[:100])
self.context.send( self.context.send(
Message.pickled( Message.pickled(
data, data,

Loading…
Cancel
Save