Update logging to handle cases where client does not have a valid handle. This happens when the application DI container is setup via AddKafkaClient and the dictionary contains both consumer and producer configuration values. When constructing a Consumer, the underlying kafka library logs encountering a producer configuration value. Same thing occurs when constructing a Producer, regarding consumer configuration values.
Update logging to handle cases where client does not have a valid handle. This happens when the application DI container is setup via
AddKafkaClient
and the dictionary contains both consumer and producer configuration values. When constructing aConsumer
, the underlying kafka library logs encountering a producer configuration value. Same thing occurs when constructing aProducer
, regarding consumer configuration values.