Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimize (and provide option to restore) content adapter errors #7

Closed
mmastrac opened this issue Jun 17, 2019 · 2 comments
Closed

Minimize (and provide option to restore) content adapter errors #7

mmastrac opened this issue Jun 17, 2019 · 2 comments

Comments

@mmastrac
Copy link

I'm searching a local tree with lots of "crap" files where some are invalid, some are misnamed, others are mis-predicted mime types. It would be great to minimize the overall error logging impact of these files to a single line (maybe two at most) to avoid losing my search results in the noise.

@phiresky
Copy link
Owner

Actually aggregating errors is fairly complicated, since then I would need to add inter-process communication. But I can definitely add a --rga-ignore-errors option that completely silences them and also reduce the length of errors in general since most of that information isn't useful. I'll look into it later today.

phiresky added a commit that referenced this issue Jun 18, 2019
@phiresky
Copy link
Owner

I've reduced the default output when a file preprocessing errors to two lines. In addition, you can pass --no-messages to suppress all file-read error messages. Let me know if you think it's not enough.

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

No branches or pull requests

2 participants