##// END OF EJS Templates
request-wrapper: show version for rhodecode in logs.
marcink -
r3926:229a84ce default
parent child Browse files
Show More
@@ -18,10 +18,10 b''
18 18 # RhodeCode Enterprise Edition, including its added features, Support services,
19 19 # and proprietary license terms, please see https://rhodecode.com/licenses/
20 20
21 import gc
22 21 import time
23 22 import logging
24 23
24 import rhodecode
25 25 from rhodecode.lib.base import get_ip_addr, get_access_path, get_user_agent
26 26 from rhodecode.lib.utils2 import safe_str
27 27
@@ -44,11 +44,12 b' class RequestWrapperTween(object):'
44 44 end = time.time()
45 45 total = end - start
46 46 count = request.request_count()
47 _ver_ = rhodecode.__version__
47 48 log.info(
48 'Req[%4s] IP: %s %s Request to %s time: %.4fs [%s]',
49 'Req[%4s] IP: %s %s Request to %s time: %.4fs [%s], RhodeCode %s',
49 50 count, get_ip_addr(request.environ), request.environ.get('REQUEST_METHOD'),
50 51 safe_str(get_access_path(request.environ)), total,
51 get_user_agent(request. environ)
52 get_user_agent(request. environ), _ver_
52 53 )
53 54
54 55 return response
General Comments 0
You need to be logged in to leave comments. Login now