Include the node id in BrokerConnection __repr__ (#1009)

This commit is contained in:
Dana Powers
2017-03-03 16:53:13 -08:00
committed by GitHub
parent 46b857fbbd
commit c741c5342e

View File

@@ -868,8 +868,8 @@ class BrokerConnection(object):
return version
def __repr__(self):
return "<BrokerConnection host=%s/%s port=%d>" % (self.hostname, self.host,
self.port)
return "<BrokerConnection node_id=%s host=%s/%s port=%d>" % (
self.config['node_id'], self.hostname, self.host, self.port)
class BrokerConnectionMetrics(object):