def handle_exception(self, *args, **kwargs): if not self.client: return self.client.capture('Exception', exc_info=kwargs.get('exc_info'), data=get_data_from_request(request), extra={ 'app': self.app, }, )
def handle_exception(self, *args, **kwargs): if not self.client: return if disabled_due_to_debug(self.app.config.get('OPBEAT', {}), self.app.config.get('DEBUG', False)): return self.client.capture( 'Exception', exc_info=kwargs.get('exc_info'), data=get_data_from_request(request), extra={ 'app': self.app, }, )
def handle_exception(self, *args, **kwargs): if not self.client: return if disabled_due_to_debug( self.app.config.get('OPBEAT', {}), self.app.config.get('DEBUG', False) ): return self.client.capture('Exception', exc_info=kwargs.get('exc_info'), data=get_data_from_request(request), extra={ 'app': self.app, }, )