def _log_error(self, url, e):
        if self.logger:
            self.logger.error('Error when handle url: %s' % (str(url)))
            self.logger.exception(e)

        url.error_times = getattr(url, 'error_times', 0) + 1
            
        self.counter_client.local_inc(self.ip, self.id_, 
                                      'error_urls', 1)
        self.counter_client.global_inc('error_urls', 1)
dataset/ETHPy150Open chineking/cola/cola/job/executor.py/UrlExecutor._log_error/original