summaryrefslogtreecommitdiff
path: root/service/test/reactor
diff options
context:
space:
mode:
authorNavaL <ayoyo@thoughtworks.com>2016-08-26 14:25:20 +0200
committerNavaL <ayoyo@thoughtworks.com>2016-08-26 14:25:20 +0200
commit8ef8acf8e853fe097c379eed4d65e67f409531d1 (patch)
tree1c03a562db0d5f383d3ef076c159cbbb8720592f /service/test/reactor
parent480e7d3bd48f2a7c23a76843750daaa03f2b12b3 (diff)
showing the full path of inlineCallback method being called
Diffstat (limited to 'service/test/reactor')
-rw-r--r--service/test/reactor/defer.patch4
1 files changed, 2 insertions, 2 deletions
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