From 6e368d37dab8d9bbbb692fdda26bc6b5ea34289c Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 20 Mar 2018 02:13:54 +0545 Subject: [PATCH] issue #156: log queue size too --- mitogen/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index 3e168438..feb4510b 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -1001,8 +1001,9 @@ class Latch(object): def __repr__(self): rsock = getattr(_tls, 'rsock', None) wsock = getattr(_tls, 'wsock', None) - return 'Latch(%r, t=%r, r=%r, w=%r)' % ( + return 'Latch(%r, size=%d, t=%r, r=%r, w=%r)' % ( id(self), + len(self.queue), threading.currentThread().name, rsock and rsock.fileno(), wsock and wsock.fileno(),