code: def _log(self, name, element):  # pylint: disable=no-self-use
          
          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)
docs: Log Response and Tag elements. Do nothing if elements is none of them.