crafka icon indicating copy to clipboard operation
crafka copied to clipboard

Message delivery log garbled

Open stufro opened this issue 2 years ago • 1 comments

When the Kafka::Producer::DeliveryReport callback is called, the log message appears like the below where the payload seems to be appearing as a binary blob.

2023-12-13T14:47:56.054339Z   INFO - crafka: Message Delivered - <83>ø#014t>~#034<83>ø#020t'<83>øn#017<94>À#017¶À<8d>D
2023-12-13T14:47:56.054344Z   INFO - crafka: Message Delivered - <83>ø#014t>~#034<83>ø#020t'<83>øn#017<94>À#017¶À<8d>D
2023-12-13T14:47:56.054346Z   INFO - crafka: Message Delivered - <83>ø#014t>~#034<83>ø#020t'<83>øn#017<94>À#017¶À<8d>D

This only seems to occur on our linux servers and not when running locally on my Mac.

stufro avatar Dec 13 '23 16:12 stufro

I've tried a lot of options with String.new and couldn't fix this issue.

I also tried manually getting the bytes out of the pointer and then initialise a string.

stufro avatar Jan 05 '24 13:01 stufro