-
Notifications
You must be signed in to change notification settings - Fork 872
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
[Feature request] Quiet mode for the standard error channel #1214
Comments
The original reason for printing informational messages on standard error likely was to avoid breaking/complicating various parsers of the packet decoding. That said, the point you make about cron jobs looks sound. One potential way to implement it would be to introduce an explicit flag like |
I fully agree on that. I guess that is especially required when raw packets are written to the STDOUT.
I believe the latter is a better choice as there might be more use cases for the need to suppress info-level messages on the STDERR. I think a flag like |
|
Or |
While tcpdump provides the argument
-q
to reduce the amount of data printed to the standard output channel, I could not find a way to do the same for the standard error channel. When scripts/programs are executed by Cron, it is often desired to suppress all non-error messages, not to cause Cron to generate emails for expected output but only when errors occur. However, when tcpdump is executed, some lines are printed to the standard error channel unconditionally, leaving tcpdump users with the options to suppress the whole standard error channel along with possible error messages or to apply some sophisticated filtering to it.For example, below are the standard error messages that do not represent real errors per se:
... so it would be great if there is an easy way to suppress them while still printing real errors like these ones:
As expected, if we suppress the whole standard error channel, both expected and unexpected messages sink into oblivion:
I checked the latest master code, but could not find any conditions that can help suppressing the expected lines.
Thank you.
The text was updated successfully, but these errors were encountered: