-
Notifications
You must be signed in to change notification settings - Fork 8
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
tv_grab_nl3.py with --quiet still writes to stderr #45
Comments
quiet suppresses output on stdout not on stderr |
So if you want to pipe the result instead of using the output file, you must not use quiet as then you get nothing to pipe! |
I'm sorry, but I'm quite sure as this has worked for years. I've just tried again just to be absolutely sure:
gives the status messages on stderr as above, and the xml data on stdout. The function Logging.writelog (in tv_grab_IO.py) checks the quiet flag and should prevent writing to stderr when it is set. Except that it doesn't for these few lines. I'll try to check why :). |
You're right. It's been a long time since I looked at that part, while in between I worked other code. |
I'm running tv_grab_nl3.py in a cron job. stdout is piped via a socket to tvheadend, but every time the job runs I get an email from cron with text like
It looks like this is the stderr output from tv_grab_nl3.py, which it outputs even though the --quiet flag is used. I think this output should be suppressed with the --quiet flag.
The text was updated successfully, but these errors were encountered: