summaryrefslogtreecommitdiff
path: root/kafka/consumer/fetcher.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-04-05 00:07:15 -0700
committerDana Powers <dana.powers@gmail.com>2016-04-05 10:22:54 -0700
commit145ac227cb7f471467de52c5016ed3727e417911 (patch)
tree799ba40ae175f0bc6e5c5013991805eb6dab5fd1 /kafka/consumer/fetcher.py
parent5a14bd8c947251d1a8f848175cc3cf2b07af3411 (diff)
downloadkafka-python-145ac227cb7f471467de52c5016ed3727e417911.tar.gz
KAFKA-3318: clean up consumer logging and error messages
Diffstat (limited to 'kafka/consumer/fetcher.py')
-rw-r--r--kafka/consumer/fetcher.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/kafka/consumer/fetcher.py b/kafka/consumer/fetcher.py
index 2c9c0b9..c1f98eb 100644
--- a/kafka/consumer/fetcher.py
+++ b/kafka/consumer/fetcher.py
@@ -511,13 +511,13 @@ class Fetcher(six.Iterator):
future.success(offset)
elif error_type in (Errors.NotLeaderForPartitionError,
Errors.UnknownTopicOrPartitionError):
- log.warning("Attempt to fetch offsets for partition %s failed due"
- " to obsolete leadership information, retrying.",
- partition)
+ log.debug("Attempt to fetch offsets for partition %s failed due"
+ " to obsolete leadership information, retrying.",
+ partition)
future.failure(error_type(partition))
else:
- log.error("Attempt to fetch offsets for partition %s failed due to:"
- " %s", partition, error_type)
+ log.warning("Attempt to fetch offsets for partition %s failed due to:"
+ " %s", partition, error_type)
future.failure(error_type(partition))
def _create_fetch_requests(self):