From cc18c84389a24da79e0236aeb4a24a95ba18ac19 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 26 Jun 2022 16:23:38 -0400 Subject: [PATCH] Decode bytes prior to log msg --- tractor/_ipc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tractor/_ipc.py b/tractor/_ipc.py index 0cfff7f7..0d1c5f7a 100644 --- a/tractor/_ipc.py +++ b/tractor/_ipc.py @@ -272,10 +272,11 @@ class MsgspecTCPStream(MsgpackTCPStream): # ignore decoding errors for now and assume they have to # do with a channel drop - hope that receiving from the # channel will raise an expected error and bubble up. + decoded_bytes = msg_bytes.decode() log.error( '`msgspec` failed to decode!?\n' 'dumping bytes:\n' - f'{msg_bytes}' + f'{decoded_bytes}' ) decodes_failed += 1 else: