summaryrefslogtreecommitdiff
path: root/kafka/conn.py
diff options
context:
space:
mode:
Diffstat (limited to 'kafka/conn.py')
-rw-r--r--kafka/conn.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kafka/conn.py b/kafka/conn.py
index f118345..782783c 100644
--- a/kafka/conn.py
+++ b/kafka/conn.py
@@ -247,12 +247,12 @@ class BrokerConnection(object):
socket.AF_UNSPEC,
socket.SOCK_STREAM)
except socket.gaierror as ex:
- log.warning('DNS lookup failed for {0}:{1},'
- ' exception was {2}. Is your'
+ log.warning('DNS lookup failed for %s:%d,'
+ ' exception was %s. Is your'
' advertised.listeners (called'
' advertised.host.name before Kafka 9)'
- ' correct and resolvable?'.format(
- self._init_host, self._init_port, ex))
+ ' correct and resolvable?',
+ self._init_host, self._init_port, ex)
self._gai = []
self._gai_index = 0
else: