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)
)
Just noticed
exclude_paths
is only used when there are a non-emptyinclude_paths
. Could that be fixed?