kmcclellan / kafka-di

An extension of Confluent's Kafka client for use with Microsoft.Extensions.DependencyInjection (and friends).
https://www.nuget.org/packages/Confluent.Kafka.DependencyInjection
MIT License
13 stars 5 forks source link

Logging with Invalid Handle #5

Closed pjwilliams2 closed 1 year ago

pjwilliams2 commented 1 year ago

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.

kmcclellan commented 1 year ago

Makes sense, thanks :)

kmcclellan commented 1 year ago

IMO this should also be addressed in Confluent.Kafka: https://github.com/confluentinc/confluent-kafka-dotnet/issues/1994