crafka
crafka copied to clipboard
Message delivery log garbled
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.
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.