Skip to content

Commit a866d99

Browse files
committed
fixup log warning
1 parent 1c21959 commit a866d99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kafka/conn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,8 @@ def _maybe_throttle(self, response):
11001100
if not self.config['api_version'] or self.config['api_version'] >= (2, 0):
11011101
throttle_time = time.time() + throttle_time_ms / 1000
11021102
self._throttle_time = max(throttle_time, self._throttle_time or 0)
1103-
log.warning("%s throttled by broker (%d ms)", response.__name__, throttle_time_ms)
1103+
log.warning("%s: %s throttled by broker (%d ms)", self,
1104+
response.__class__.__name__, throttle_time_ms)
11041105

11051106
def can_send_more(self):
11061107
"""Check for throttling / quota violations and max in-flight-requests"""

0 commit comments

Comments
 (0)