From a34ae95e054f1d2dcf5cf794d6a565479b97d03b Mon Sep 17 00:00:00 2001 From: Gilles Dartiguelongue Date: Wed, 4 Oct 2017 18:52:05 +0200 Subject: [PATCH] Log in-flight requests count when timeout occurs --- ghost/ghost.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ghost/ghost.py b/ghost/ghost.py index b0d2ff7..53bfc8c 100755 --- a/ghost/ghost.py +++ b/ghost/ghost.py @@ -1266,6 +1266,8 @@ def wait_for(self, condition, timeout_message, timeout=None): started_at = time.time() while not condition(): if time.time() > (started_at + timeout): + self.logger.debug('Timeout with %d requests still in flight', + self.manager.requests) raise TimeoutError(timeout_message) self.sleep(value=timeout / 10) if self.wait_callback is not None: