def log_request_data(function):

    def wrap(controller, request, *args, **kwargs):
        _helper = Helpers()
        _logger = _helper.get_logger(__name__)
        _logger.debug((_('Request Method: %s') % request.method))
        _logger.debug((_('Request URL: %s') % request.path))
        _logger.debug((_('Request Body: %s') % request.body))
        return function(controller, request, *args, **kwargs)
    return wrap
def log_request_data(function):

    def wrap(controller, request, *args, **kwargs):
        _helper = Helpers()
        _logger = _helper.get_logger(__name__)
        _logger.debug((_('Request Method: %s') % request.method))
        _logger.debug((_('Request URL: %s') % request.path))
        _logger.debug((_('Request Body: %s') % request.body))
        return function(controller, request, *args, **kwargs)
    return wrap