summaryrefslogtreecommitdiff
path: root/kafka/consumer/fetcher.py
diff options
context:
space:
mode:
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):