pyro: Slightly improved log message and comment.

This commit is contained in:
Martin Bornhold 2016-07-05 09:37:57 +02:00
parent 64893dfad5
commit dec51f1669

View file

@ -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)