issue #156: make Pool repr log thread too.

pull/167/head
David Wilson 7 years ago
parent c20c2587d9
commit c51eee3c7f

@ -135,7 +135,12 @@ class Pool(object):
raise
def __repr__(self):
return 'mitogen.service.Pool(%#x, size=%d)' % (id(self), self.size)
th = threading.currentThread()
return 'mitogen.service.Pool(%#x, size=%d, th=%r)' % (
id(self),
self.size,
th.name,
)
def call(context, handle, obj):

Loading…
Cancel
Save