##// END OF EJS Templates
request-wrapper: show version for vcsserver in logs.
marcink -
r777:200e3525 default
parent child Browse files
Show More
@@ -15,11 +15,10 b''
15 # along with this program; if not, write to the Free Software Foundation,
15 # along with this program; if not, write to the Free Software Foundation,
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
17
18 import gc
19 import time
18 import time
20 import logging
19 import logging
21
20
22
21 import vcsserver
23 from vcsserver.utils import safe_str
22 from vcsserver.utils import safe_str
24
23
25
24
@@ -50,10 +49,11 b' class RequestWrapperTween(object):'
50 end = time.time()
49 end = time.time()
51 total = end - start
50 total = end - start
52 count = request.request_count()
51 count = request.request_count()
52 _ver_ = vcsserver.__version__
53 log.info(
53 log.info(
54 'Req[%4s] IP: %s %s Request to %s time: %.4fs [%s]',
54 'Req[%4s] IP: %s %s Request to %s time: %.4fs [%s], VCSServer %s',
55 count, '127.0.0.1', request.environ.get('REQUEST_METHOD'),
55 count, '127.0.0.1', request.environ.get('REQUEST_METHOD'),
56 safe_str(get_access_path(request)), total, get_user_agent(request.environ))
56 safe_str(get_access_path(request)), total, get_user_agent(request.environ), _ver_)
57
57
58 return response
58 return response
59
59
General Comments 0
You need to be logged in to leave comments. Login now