# HG changeset patch # User Marcin Kuzminski # Date 2019-07-17 14:29:21 # Node ID b969aed64d8f61d1a590ffec9883accb0d420bbe # Parent e2a182117bac428a2002c768318922f769eb79d3 core: added more accurate time measurements diff --git a/configs/gunicorn_config.py b/configs/gunicorn_config.py --- a/configs/gunicorn_config.py +++ b/configs/gunicorn_config.py @@ -130,7 +130,7 @@ def pre_request(worker, req): def post_request(worker, req, environ, resp): total_time = time.time() - worker.start_time worker.log.debug( - "GNCRN POST WORKER [cnt:%s]: %s %s resp: %s, Load Time: %.3fs", + "GNCRN POST WORKER [cnt:%s]: %s %s resp: %s, Load Time: %.4fs", worker.nr, req.method, req.path, resp.status_code, total_time) diff --git a/vcsserver/tweens.py b/vcsserver/tweens.py --- a/vcsserver/tweens.py +++ b/vcsserver/tweens.py @@ -46,7 +46,7 @@ class RequestWrapperTween(object): finally: end = time.time() - log.info('IP: %s Request to path: `%s` time: %.3fs', + log.info('IP: %s Request to path: `%s` time: %.4fs', '127.0.0.1', safe_str(get_access_path(request)), end - start) return response