XMLTV / xmltv

Utilities to obtain, generate, and post-process TV listings data in XMLTV format
GNU General Public License v2.0
275 stars 93 forks source link

tv_grab_na_dtv --debug outputs request logs to stdout #124

Closed fugkco closed 3 years ago

fugkco commented 3 years ago

XMLTV Version?

v0.6.3

XMLTV Component?

tv_grab_na_dtv

What happened?

--debug flag outputs debug to stdout instead of of stderr

What did you expect to happen?

--debug flag should, as requested, show debugging output, but it should be output to stderr instead of stdout

Did you see any warnings/errors?

N/A

What steps are needed to reproduce this issue?

(Please provide the full commands you are running)

  1. tv_grab_na_dtv --configure
  2. tv_grab_na_dtv --days 1 --debug > /tmp/tv.xml
  3. notice tv.xml contains debug output - specifically requests and responses for all URLs retrieved.

Any other information?

The reason this should be on stderr, is because, for example, when running this within TVHeadend, TVHeadend captures stdout, and sees stderr as log informations. Stdout doesn't contain valid xml if requests are output to stdout.

What other software are you using?

TVHeadend

honir commented 3 years ago

Thanks for the report. Fixed in library

Note: to reduce the extensive reporting from this grabber you could use the --quiet option in combination with --debug