##// 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 47 def __call__(self, request):
48 48 start = time.time()
49 log.debug('Starting request time measurement')
49 log.debug('Starting request processing')
50 50 response = None
51 51 request.req_wrapper_start = start
52 52
@@ -63,7 +63,7 b' class RequestWrapperTween(object):'
63 63
64 64 total = time.time() - start
65 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 67 count, _auth_user, request.environ.get('REQUEST_METHOD'),
68 68 _path, total, get_user_agent(request. environ), _ver_,
69 69 extra={"time": total, "ver": _ver_, "ip": ip,
General Comments 0
You need to be logged in to leave comments. Login now