# HG changeset patch # User RhodeCode Admin # Date 2024-08-28 11:29:30 # Node ID 669e0fe14c733dc5319ef796f6263ace96688857 # Parent 95e59c412bdfc7cfa3db7d5905548cbf1927e94c chore(logging): optimize loggers for request wrapper to be easier to read diff --git a/rhodecode/lib/middleware/request_wrapper.py b/rhodecode/lib/middleware/request_wrapper.py --- a/rhodecode/lib/middleware/request_wrapper.py +++ b/rhodecode/lib/middleware/request_wrapper.py @@ -46,7 +46,7 @@ class RequestWrapperTween(object): def __call__(self, request): start = time.time() - log.debug('Starting request time measurement') + log.debug('Starting request processing') response = None request.req_wrapper_start = start @@ -63,7 +63,7 @@ class RequestWrapperTween(object): total = time.time() - start log.info( - 'Req[%4s] %s %s Request to %s time: %.4fs [%s], RhodeCode %s', + 'Finished request processing: req[%4s] %s %s Request to %s time: %.4fs [%s], RhodeCode %s', count, _auth_user, request.environ.get('REQUEST_METHOD'), _path, total, get_user_agent(request. environ), _ver_, extra={"time": total, "ver": _ver_, "ip": ip,