astronomy-commons / adc-streaming

Core Python(ic) client libraries and utilities for alert streaming
BSD 3-Clause "New" or "Revised" License
6 stars 6 forks source link

consumer.py: fix version display in log warnings if using latest offsets #38

Closed myNameIsPatrick closed 4 years ago

myNameIsPatrick commented 4 years ago

This PR fixes the log messages when using the latest offset.

Before:

In librdkafka before v1.5, LATEST offsets have buggy behavior; you may not receive data (your librdkafka version is {librdkafka_version}). See https://github.com/confluentinc/confluent-kafka-dotnet/issues/1254.

After:

In librdkafka before v1.5, LATEST offsets have buggy behavior; you may not receive data (your librdkafka version is 1.4.2). See https://github.com/confluentinc/confluent-kafka-dotnet/issues/1254.