コード例 #1
0
ファイル: __init__.py プロジェクト: anandology/opbeat_python
    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,
            },
        )
コード例 #2
0
    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,
            },
        )
コード例 #3
0
ファイル: __init__.py プロジェクト: daikeren/opbeat_python
    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,
            },
        )
コード例 #4
0
ファイル: __init__.py プロジェクト: patrys/opbeat_python
    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,
            },
        )