'Checks and logs API responses.
:param rest_response: The result from a REST API call.
:returns: ``True`` if success, ``False`` otherwise.'

@staticmethod
def _check_result(rest_response):

    if (rest_response is not None):
        if (http_client.OK <= rest_response.status_code < http_client.MULTIPLE_CHOICES):
            return True
        try:
            response_json = rest_response.json()
            response_text = response_json.text['result']
        except Exception:
            response_text = rest_response.text
        LOG.debug('REST    call    result:\n DCTB Url:                %(url)s\n DCTB Code:            %(code)d\n DCTB Reason:    %(reason)s\n DCTB Text:            %(text)s', {'url': rest_response.url, 'code': rest_response.status_code, 'reason': rest_response.reason, 'text': response_text})
    else:
        LOG.warning('Failed    to    get    REST    call    result.')
    return False
