Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

exclude_paths is not used without include_paths #1288

Open
fabiopedrosa opened this issue Aug 15, 2018 · 1 comment
Open

exclude_paths is not used without include_paths #1288

fabiopedrosa opened this issue Aug 15, 2018 · 1 comment

Comments

@fabiopedrosa
Copy link

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)
                    )
@GaussDing
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants