From 46a14d4ae28d3b5d86bccc9db3a77cc489ba5500 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Thu, 29 Mar 2018 21:33:59 +0545 Subject: [PATCH] core: Fix logging crash if data is non-string. --- mitogen/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index 4c1e049b..4f2bbd75 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -386,7 +386,7 @@ class Sender(object): def send(self, data): """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( Message.pickled( data,