Commit c51eee3c authored by David Wilson's avatar David Wilson

issue #156: make Pool repr log thread too.

parent c20c2587
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment