# HG changeset patch # User RhodeCode Admin # Date 2024-08-28 08:43:08 # Node ID 9241b3097fc271db098116ca0d3530b821c17b86 # Parent 8f89af3991118f5993894002b9f0321177a7450f chore: improved logging for request processing diff --git a/vcsserver/tweens/request_wrapper.py b/vcsserver/tweens/request_wrapper.py --- a/vcsserver/tweens/request_wrapper.py +++ b/vcsserver/tweens/request_wrapper.py @@ -64,7 +64,7 @@ class RequestWrapperTween: def __call__(self, request): start = time.time() - log.debug('Starting request time measurement') + log.debug('Starting request processing') response = None try: @@ -88,7 +88,7 @@ class RequestWrapperTween: total = time.time() - start log.info( - 'Req[%4s] IP: %s %s Request to %s time: %.4fs [%s], VCSServer %s', + 'Finished request processing: reqq[%4s] IP: %s %s Request to %s time: %.4fs [%s], VCSServer %s', count, ip, request.environ.get('REQUEST_METHOD'), _view_path, total, ua, _ver_, extra={"time": total, "ver": _ver_, "code": resp_code,