##// END OF EJS Templates
chore(logging): optimize loggers for request wrapper to be easier to read
super-admin -
r5512:669e0fe1 default
parent child Browse files
Show More
@@ -46,7 +46,7 b' class RequestWrapperTween(object):'
46
46
47 def __call__(self, request):
47 def __call__(self, request):
48 start = time.time()
48 start = time.time()
49 log.debug('Starting request time measurement')
49 log.debug('Starting request processing')
50 response = None
50 response = None
51 request.req_wrapper_start = start
51 request.req_wrapper_start = start
52
52
@@ -63,7 +63,7 b' class RequestWrapperTween(object):'
63
63
64 total = time.time() - start
64 total = time.time() - start
65 log.info(
65 log.info(
66 'Req[%4s] %s %s Request to %s time: %.4fs [%s], RhodeCode %s',
66 'Finished request processing: req[%4s] %s %s Request to %s time: %.4fs [%s], RhodeCode %s',
67 count, _auth_user, request.environ.get('REQUEST_METHOD'),
67 count, _auth_user, request.environ.get('REQUEST_METHOD'),
68 _path, total, get_user_agent(request. environ), _ver_,
68 _path, total, get_user_agent(request. environ), _ver_,
69 extra={"time": total, "ver": _ver_, "ip": ip,
69 extra={"time": total, "ver": _ver_, "ip": ip,
General Comments 0
You need to be logged in to leave comments. Login now