raven-python icon indicating copy to clipboard operation
raven-python copied to clipboard

exclude_paths is not used without include_paths

Open fabiopedrosa opened this issue 7 years ago • 1 comments

Just noticed exclude_paths is only used when there are a non-empty include_paths. Could that be fixed?

if self.include_paths:
            for frame in self._iter_frames(data):
                if frame.get('in_app') is not None:
                    continue

                path = frame.get('module')
                if not path:
                    continue

                if path.startswith('raven.'):
                    frame['in_app'] = False
                else:
                    print "checking", path
                    frame['in_app'] = (
                        any(path.startswith(x) for x in self.include_paths) and
                        not any(path.startswith(x) for x in self.exclude_paths)
                    )

fabiopedrosa avatar Aug 15 '18 23:08 fabiopedrosa

yeah, i think this not friendly, i want to exclude but not related include_paths

GaussDing avatar Oct 18 '19 03:10 GaussDing