Callback for failed send

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", item)