kitir/kits/restful_api.py
def _log_response(cls, response, response_file_path):
        """log the response side of a transaction"""
        content = cls._get_content_from_response(response)
        if content is not None:
            data_file = utils.write_file(response_file_path, content)
            log.trace('log-response: status={} data={}'.format(response.status_code, data_file))
        else:
            log.trace('log-response: status={} data=None'.format(response.status_code))
log the response side of a transaction
log the response side of a transaction
log the response side of a transaction
def _log_response(cls, response, response_file_path):
        content = cls._get_content_from_response(response)
        if content is not None:
            data_file = utils.write_file(response_file_path, content)
            log.trace('log-response: status={} data={}'.format(response.status_code, data_file))
        else:
            log.trace('log-response: status={} data=None'.format(response.status_code))
def _log_response ( cls , response , response_file_path ) : content = cls . _get_content_from_response ( response ) if content is not None : data_file = utils . write_file ( response_file_path , content ) log . trace ( 'log-response: status={} data={}' . format ( response . status_code , data_file ) ) else : log . trace ( 'log-response: status={} data=None' . format ( response . status_code ) )
log the response side of a transaction
log the response side of a transaction
"""log the response side of a transaction"""
cls
response
response_file_path