def _log(self, name, element):  # pylint: disable=no-self-use
        """
        Log Response and Tag elements. Do nothing if elements is none of them.
        """
        from bs4 import BeautifulSoup, Tag
        if isinstance(element, Response):
            LOGGER.debug('%s response: URL=%s Code=%s', name, element.url, element.status_code)
        elif isinstance(element, (BeautifulSoup, Tag)):
            LOGGER.debug('%s HTML:\n%s', name, element)
Log Response and Tag elements. Do nothing if elements is none of them.