##// END OF EJS Templates
core: added more accurate time measurements
marcink -
r737:b969aed6 default
parent child Browse files
Show More
@@ -130,7 +130,7 b' def pre_request(worker, req):'
130 def post_request(worker, req, environ, resp):
130 def post_request(worker, req, environ, resp):
131 total_time = time.time() - worker.start_time
131 total_time = time.time() - worker.start_time
132 worker.log.debug(
132 worker.log.debug(
133 "GNCRN POST WORKER [cnt:%s]: %s %s resp: %s, Load Time: %.3fs",
133 "GNCRN POST WORKER [cnt:%s]: %s %s resp: %s, Load Time: %.4fs",
134 worker.nr, req.method, req.path, resp.status_code, total_time)
134 worker.nr, req.method, req.path, resp.status_code, total_time)
135
135
136
136
@@ -46,7 +46,7 b' class RequestWrapperTween(object):'
46 finally:
46 finally:
47 end = time.time()
47 end = time.time()
48
48
49 log.info('IP: %s Request to path: `%s` time: %.3fs',
49 log.info('IP: %s Request to path: `%s` time: %.4fs',
50 '127.0.0.1', safe_str(get_access_path(request)), end - start)
50 '127.0.0.1', safe_str(get_access_path(request)), end - start)
51
51
52 return response
52 return response
General Comments 0
You need to be logged in to leave comments. Login now