From 8ef8acf8e853fe097c379eed4d65e67f409531d1 Mon Sep 17 00:00:00 2001 From: NavaL Date: Fri, 26 Aug 2016 14:25:20 +0200 Subject: showing the full path of inlineCallback method being called --- service/test/reactor/defer.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'service/test/reactor') diff --git a/service/test/reactor/defer.patch b/service/test/reactor/defer.patch index fdd5a251..bb20e00c 100644 --- a/service/test/reactor/defer.patch +++ b/service/test/reactor/defer.patch @@ -1,5 +1,5 @@ diff --git a/lib/python2.7/site-packages/twisted/internet/defer.py b/lib/python2.7/site-packages/twisted/internet/defer.py -index fe9f0a0..5c428d3 100644 +index fe9f0a0..92bf379 100644 --- a/lib/python2.7/site-packages/twisted/internet/defer.py +++ b/lib/python2.7/site-packages/twisted/internet/defer.py @@ -31,6 +31,19 @@ from twisted.logger import Logger @@ -69,7 +69,7 @@ index fe9f0a0..5c428d3 100644 "instead got %r" % (f, gen)) - return _inlineCallbacks(None, gen, Deferred()) + currentThreadId = threading.current_thread().ident -+ c = Clock("%s in thread %d" % (f, currentThreadId)) ++ c = Clock("%s in thread %d" % (str(gen.gi_code), currentThreadId)) + result = _inlineCallbacks(None, gen, Deferred()) + c.stop('inlineCallback') + return result -- cgit v1.2.3