def post(self, exc_info, request=None): if not self.get_errbit_url(): logging.error('ERRBIT_URL not configured as environment variable.') if not self.get_api_key(): logging.error('ERRBIT_API_KEY not configured as environment variable.') xml = xmlgenerator.generate_xml(self.get_api_key(), self.get_notifier(), exc_info, request=request, environment=self.get_environment()) http_client = self.http_client() req = ThreadedRequest(self.get_errbit_url(), xml, http_client=http_client) req.start()
def post(self, exc_info, request=None): if not self.get_errbit_url(): logging.error('ERRBIT_URL not configured as environment variable.') if not self.get_api_key(): logging.error( 'ERRBIT_API_KEY not configured as environment variable.') xml = xmlgenerator.generate_xml(self.get_api_key(), self.get_notifier(), exc_info, request=request, environment=self.get_environment()) req = ThreadedRequest(self.get_errbit_url(), xml) req.start()
def post(self, exc_info, request=None): if not self.get_errbit_url(): logging.error('ERRBIT_URL not configured as environment variable.') return if not self.get_api_key(): logging.error('ERRBIT_API_KEY not configured as environment ' 'variable.') return if self.is_ignored(exc_info): return xml = xmlgenerator.generate_xml(self.get_api_key(), self.get_notifier(), exc_info, request=request, environment=self.get_environment()) http_client = self.http_client() req = ThreadedRequest(self.get_errbit_url(), xml, http_client=http_client) req.start()
def generate(*args, **kwargs): xml = generate_xml(*args, **kwargs) validate_xml(xml) return PyQuery(xml)