forked from goodboy/tractor
Decode bytes prior to log msg
parent
af205c08f2
commit
cc18c84389
|
@ -272,10 +272,11 @@ class MsgspecTCPStream(MsgpackTCPStream):
|
||||||
# ignore decoding errors for now and assume they have to
|
# ignore decoding errors for now and assume they have to
|
||||||
# do with a channel drop - hope that receiving from the
|
# do with a channel drop - hope that receiving from the
|
||||||
# channel will raise an expected error and bubble up.
|
# channel will raise an expected error and bubble up.
|
||||||
|
decoded_bytes = msg_bytes.decode()
|
||||||
log.error(
|
log.error(
|
||||||
'`msgspec` failed to decode!?\n'
|
'`msgspec` failed to decode!?\n'
|
||||||
'dumping bytes:\n'
|
'dumping bytes:\n'
|
||||||
f'{msg_bytes}'
|
f'{decoded_bytes}'
|
||||||
)
|
)
|
||||||
decodes_failed += 1
|
decodes_failed += 1
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue