def ApplyRule(self, return_value, request, response):
    """Returns True if logged.

    Args:
      return_value: the prior log_url rule's return_value (if any).
      request: the httparchive ArchivedHttpRequest.
      response: the httparchive ArchivedHttpResponse.
    Returns:
      A (should_stop, return_value) tuple, e.g. (False, True).
    """
    del response  # unused.
    url = '%s%s' % (request.host, request.full_path)
    if not self._url_re.match(url):
      return False, return_value

    logging.debug('url: %s', url)
    return self._stop, True
dataset/ETHPy150Open chromium/web-page-replay/rules/log_url.py/LogUrl.ApplyRule/original