racecar icon indicating copy to clipboard operation
racecar copied to clipboard

Setting the Rdkafka logger

Open Greg-Myers-SB opened this issue 8 months ago • 0 comments

The Racecar config passes the producer variable through https://github.com/zendesk/racecar/blob/097eb354a49d72157c3129cfbadd52ddf60ad91f/lib/racecar/config.rb#L275 to Rdkafka::Config.new https://github.com/zendesk/racecar/blob/097eb354a49d72157c3129cfbadd52ddf60ad91f/lib/racecar/producer.rb#L45 and that is where the Rdkafka logger is set.

Unfortunately producer is a kind of KingConf which only allows simple values and not logger which was stated in #71 and #72 . Is there a correct way to set the Rdkafka::Config.logger such that it is reliably set each time one is initialized?

Greg-Myers-SB avatar Jun 27 '24 14:06 Greg-Myers-SB