pyro: Slightly improved log message and comment.
This commit is contained in:
parent
64893dfad5
commit
dec51f1669
1 changed files with 3 additions and 2 deletions
|
|
@ -231,10 +231,11 @@ class RequestScopeProxyFactory(object):
|
|||
try:
|
||||
proxy = self._proxy_pool.pop()
|
||||
except IndexError:
|
||||
log.info('Creating new proxy for remote_uri=%s', self._remote_uri)
|
||||
log.info('Creating pyro proxy for remote_uri=%s', self._remote_uri)
|
||||
proxy = Pyro4.Proxy(self._remote_uri)
|
||||
|
||||
# Store proxy instance as borrowed and add request callback.
|
||||
# Mark proxy as borrowed for the request context and add a callback
|
||||
# that returns it when the request processing is finished.
|
||||
self._borrowed_proxies[request] = proxy
|
||||
request.add_finished_callback(self._returnProxy)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue