Keep context for logging intact in greenthreads

* fixes bug 942918

Change-Id: Ia0fcf459c53b95a8675472adcfbba08014e34e5b
This commit is contained in:
Vishvananda Ishaya
2012-03-15 13:02:07 -07:00
parent 74f2d31157
commit ca2d92adca
2 changed files with 2 additions and 2 deletions

View File

@@ -244,7 +244,7 @@ class ProxyCallback(object):
"""Thread that magically looks for a method on the proxy
object and calls it.
"""
ctxt.update_store()
try:
node_func = getattr(self.proxy, str(method))
node_args = dict((str(k), v) for k, v in args.iteritems())

View File

@@ -283,7 +283,7 @@ class AdapterConsumer(Consumer):
"""Thread that magically looks for a method on the proxy
object and calls it.
"""
ctxt.update_store()
node_func = getattr(self.proxy, str(method))
node_args = dict((str(k), v) for k, v in args.iteritems())
# NOTE(vish): magic is fun!