def Wrapper(request, *args, **kwargs):
    'Wrapping function.'
    try:
        response = func(request, *args, **kwargs)
        server_logging.LOGGER.LogHttpAdminUIAccess(request, response)
    except Exception:
        response = werkzeug_wrappers.Response('', status=500)
        server_logging.LOGGER.LogHttpAdminUIAccess(request, response)
        raise
    return response
Wrapping function.
def Wrapper(request, *args, **kwargs):
    
    try:
        response = func(request, *args, **kwargs)
        server_logging.LOGGER.LogHttpAdminUIAccess(request, response)
    except Exception:
        response = werkzeug_wrappers.Response(, status=500)
        server_logging.LOGGER.LogHttpAdminUIAccess(request, response)
        raise
    return response