From dec51f1669086b81f7624abb1480d0db4ffa5ef3 Mon Sep 17 00:00:00 2001 From: Martin Bornhold Date: Tue, 5 Jul 2016 09:37:57 +0200 Subject: [PATCH] pyro: Slightly improved log message and comment. --- rhodecode/lib/vcs/client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rhodecode/lib/vcs/client.py b/rhodecode/lib/vcs/client.py index 6c854851..69a4ccb1 100644 --- a/rhodecode/lib/vcs/client.py +++ b/rhodecode/lib/vcs/client.py @@ -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)