Skip to content

Commit ff6f7bf

Browse files
committed
Minor additional logging for consumer coordinator
1 parent 8ebb646 commit ff6f7bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kafka/coordinator/base.py

+2
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def ensure_coordinator_known(self):
215215
if future.failed():
216216
if future.retriable():
217217
if getattr(future.exception, 'invalid_metadata', False):
218+
log.debug('Requesting metadata for group coordinator request: %s', future.exception)
218219
metadata_update = self._client.cluster.request_update()
219220
self._client.poll(future=metadata_update)
220221
else:
@@ -532,6 +533,7 @@ def close(self):
532533
if not self.coordinator_unknown() and self.generation > 0:
533534
# this is a minimal effort attempt to leave the group. we do not
534535
# attempt any resending if the request fails or times out.
536+
log.info('Leaving consumer group (%s).', self.group_id)
535537
request = LeaveGroupRequest[0](self.group_id, self.member_id)
536538
future = self._client.send(self.coordinator_id, request)
537539
future.add_callback(self._handle_leave_group_response)

0 commit comments

Comments
 (0)