예제 #1
0
    def captureMessage(self, *args, **kwargs):
        assert self.client, 'captureMessage called before application configured'
        data = kwargs.get('data')
        if data is None:
            kwargs['data'] = get_data_from_request()

        return self.client.captureMessage(*args, **kwargs)
예제 #2
0
 def handle_exception(self, *args, **kwargs):
     self.client.captureException(
         exc_info=kwargs.get('exc_info'),
         data=get_data_from_request(),
         extra={
             'app': self,
         },
     )
예제 #3
0
파일: utils.py 프로젝트: krise3k/armada
    def capture(self,
                event_type,
                data=None,
                date=None,
                time_spent=None,
                extra=None,
                stack=None,
                tags=None,
                **kwargs):
        request_data = get_data_from_request()
        data.update(request_data)

        return super(WebSentryClient,
                     self).capture(event_type, data, date, time_spent, extra,
                                   stack, tags, **kwargs)
예제 #4
0
    def capture(self, event_type, data=None, date=None, time_spent=None, extra=None, stack=None, tags=None, **kwargs):
        request_data = get_data_from_request()
        data.update(request_data)

        return super(WebSentryClient, self).capture(event_type, data, date, time_spent, extra, stack, tags, **kwargs)
예제 #5
0
 def captureMessage(self, *args, **kwargs):
     data = kwargs.get('data')
     if data is None:
         kwargs['data'] = get_data_from_request()
     return self.client.captureMessage(*args, **kwargs)