zendesk/racecar

Setting the Rdkafka logger

Greg-Myers-SB opened this issue · 0 comments

The Racecar config passes the producer variable through

producer_config = producer.map do |param|

to Rdkafka::Config.new
producer_config.merge!(config.rdkafka_producer)

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?