-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Option to supress log/error messages #149
Comments
Which log messages do you want to see suppressed? |
Anything that isn't results. For example, when folders aren't readable, you currently get:
|
But that's emitted to |
Hm indeed! I guess if all non-result text is emitted on stderr, that should be a fine solution. Ripgrep isn't always used within a shell context though, but I guess there is always the possibility to control stderr. |
I think GNU find has the same behavior. I don't see an option to suppress these types of messages, but if it did, I'd consider that a stronger precedent than |
However, I do agree that it seems redundant if messages are properly sent to stderr. |
I'm guessing this exists because sending stderr to /dev/null is not always appropriate or possible, but can't think of any specific examples. My use-case is solved with redirection. |
@cloudhead I consider |
Great. I don't think a short option is necessary. |
Perfect! Full example: rg 'my regex search' 'path/to/search' 2> /dev/null |
Sorry for bringing back old topic, but I don't seem to find an option to suppress messages like:
Neither |
It would be nice to have an option to supress log messages and errors like in
ag
. This is useful for using ripgrep in scripts. This comes up when using ripgrep in directories where certain files are not readable.In
ag
, there is:Since there is already a
--quiet
option, this might not be the best name for it, maybe--no-log
?The text was updated successfully, but these errors were encountered: