kitir/kits/restful_api.py
def _log_request(cls, response, request_file_path):
        """log the request side of a transaction"""
        if response.request.body:
            content = response.request.body
        else:
            content = response.request.url
        data_file = utils.write_file(request_file_path, content)
        log.trace('log-request: method={} url={} path={} data={}'.format(
            response.request.method, response.request.url, data_file, bool(response.request.body)))
log the request side of a transaction
log the request side of a transaction
log the request side of a transaction
def _log_request(cls, response, request_file_path):
        if response.request.body:
            content = response.request.body
        else:
            content = response.request.url
        data_file = utils.write_file(request_file_path, content)
        log.trace('log-request: method={} url={} path={} data={}'.format(
            response.request.method, response.request.url, data_file, bool(response.request.body)))
def _log_request ( cls , response , request_file_path ) : if response . request . body : content = response . request . body else : content = response . request . url data_file = utils . write_file ( request_file_path , content ) log . trace ( 'log-request: method={} url={} path={} data={}' . format ( response . request . method , response . request . url , data_file , bool ( response . request . body ) ) )
log the request side of a transaction
log the request side of a transaction
"""log the request side of a transaction"""
cls
response
request_file_path