##// END OF EJS Templates
chore: improved logging for request processing
super-admin -
r1279:9241b309 default
parent child Browse files
Show More
@@ -64,7 +64,7 b' class RequestWrapperTween:'
64
64
65 def __call__(self, request):
65 def __call__(self, request):
66 start = time.time()
66 start = time.time()
67 log.debug('Starting request time measurement')
67 log.debug('Starting request processing')
68 response = None
68 response = None
69
69
70 try:
70 try:
@@ -88,7 +88,7 b' class RequestWrapperTween:'
88 total = time.time() - start
88 total = time.time() - start
89
89
90 log.info(
90 log.info(
91 'Req[%4s] IP: %s %s Request to %s time: %.4fs [%s], VCSServer %s',
91 'Finished request processing: reqq[%4s] IP: %s %s Request to %s time: %.4fs [%s], VCSServer %s',
92 count, ip, request.environ.get('REQUEST_METHOD'),
92 count, ip, request.environ.get('REQUEST_METHOD'),
93 _view_path, total, ua, _ver_,
93 _view_path, total, ua, _ver_,
94 extra={"time": total, "ver": _ver_, "code": resp_code,
94 extra={"time": total, "ver": _ver_, "code": resp_code,
General Comments 0
You need to be logged in to leave comments. Login now