Skip to content

Commit b527441

Browse files
committed
broker version log info
1 parent a3bbdf3 commit b527441

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kafka/conn.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ def _handle_api_versions_response(self, future, response):
597597
for api_key, min_version, max_version in response.api_versions
598598
])
599599
self._api_version = self._infer_broker_version_from_api_versions(self._api_versions)
600+
log.info('Broker version identified as %s', '.'.join(map(str, version)))
600601
future.success(self._api_version)
601602
self.connect()
602603

@@ -607,8 +608,8 @@ def _handle_api_versions_failure(self, future, ex):
607608

608609
def _handle_check_version_response(self, future, version, _response):
609610
log.info('Broker version identified as %s', '.'.join(map(str, version)))
610-
#log.info('Set configuration api_version=%s to skip auto'
611-
# ' check_version requests on startup', version)
611+
log.info('Set configuration api_version=%s to skip auto'
612+
' check_version requests on startup', version)
612613
self._api_versions = BROKER_API_VERSIONS[version]
613614
self._api_version = version
614615
future.success(version)

0 commit comments

Comments
 (0)