Lower logging level on replica not available and commit
This commit is contained in:
@@ -409,7 +409,7 @@ class KafkaClient(object):
|
||||
# this error code is provided for admin purposes only
|
||||
# we never talk to replicas, only the leader
|
||||
except ReplicaNotAvailableError:
|
||||
log.warning('Some (non-leader) replicas not available for topic %s partition %d', topic, partition)
|
||||
log.debug('Some (non-leader) replicas not available for topic %s partition %d', topic, partition)
|
||||
|
||||
# If Known Broker, topic_partition -> BrokerMetadata
|
||||
if leader in self.brokers:
|
||||
|
||||
@@ -138,7 +138,7 @@ class Consumer(object):
|
||||
if partitions is None: # commit all partitions
|
||||
partitions = list(self.offsets.keys())
|
||||
|
||||
log.info('Committing new offsets for %s, partitions %s',
|
||||
log.debug('Committing new offsets for %s, partitions %s',
|
||||
self.topic, partitions)
|
||||
for partition in partitions:
|
||||
offset = self.offsets[partition]
|
||||
|
||||
Reference in New Issue
Block a user