code: def _kafka_failure(self, item, spider, response):
          '''
          Callback for failed send
          '''
          item['success'] = False
          item['exception'] = traceback.format_exc()
          item['spiderid'] = spider.name
          item = self._clean_item(item)
          self.logger.error("Failed to send page to Kafka", itemf _kafka_failure(self, item, spider, response):
          '''
          Callback for failed send
          '''
          item['success'] = False
          item['exception'] = traceback.format_exc()
          item['spiderid'] = spider.name
          item = self._clean_item(item)
          self.logger.error("Failed to send page to Kafka", item)
docs: Callback for failed send