Include open count in pool state string

This commit is contained in:
Tyler Hobbs
2013-11-04 16:20:37 -06:00
parent dd84464991
commit 6d6fc66ba4

View File

@@ -543,4 +543,4 @@ class HostConnectionPool(object):
def get_state(self):
in_flights = ", ".join([str(c.in_flight) for c in self._connections])
return "shutdown: %s, in_flights: %s" % (self.is_shutdown, in_flights)
return "shutdown: %s, open_count: %d, in_flights: %s" % (self.is_shutdown, self.open_count, in_flights)