##// END OF EJS Templates
pyro: Slightly improved log message and comment.
Martin Bornhold -
r355:12bfd543 default
parent child Browse files
Show More
@@ -231,10 +231,11 b' class RequestScopeProxyFactory(object):'
231 try:
231 try:
232 proxy = self._proxy_pool.pop()
232 proxy = self._proxy_pool.pop()
233 except IndexError:
233 except IndexError:
234 log.info('Creating new proxy for remote_uri=%s', self._remote_uri)
234 log.info('Creating pyro proxy for remote_uri=%s', self._remote_uri)
235 proxy = Pyro4.Proxy(self._remote_uri)
235 proxy = Pyro4.Proxy(self._remote_uri)
236
236
237 # Store proxy instance as borrowed and add request callback.
237 # Mark proxy as borrowed for the request context and add a callback
238 # that returns it when the request processing is finished.
238 self._borrowed_proxies[request] = proxy
239 self._borrowed_proxies[request] = proxy
239 request.add_finished_callback(self._returnProxy)
240 request.add_finished_callback(self._returnProxy)
240
241
General Comments 0
You need to be logged in to leave comments. Login now