INFO logging appears on stderr

Bug #999304 reported by John Dutch
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SubDownloader
New
Undecided
Unassigned

Bug Description

version: 2.0.14
OS: Linux

Ok so this is not really a big deal, but I was puzzled that when I redirected the stdout to a file (using '>') while calling invoking subdownloader, i still got all my output to my terminal, like so:

/usr/lib/python2.6/dist-packages/kaa/metadata/disc/cdrom.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
[21:41] INFO::subdownloader.cli.main # Scanning Movies/SomeVideo.720p.hdtv.x264/SomeMovie.720p.hdtv.x264.mkv ...
[21:41] INFO::subdownloader.cli.main # Videos found: 1 Subtitles found: 2
[21:41] INFO::subdownloader.cli.main # Looks like some of your videos might need subtitles :)
[21:41] INFO::subdownloader.cli.main # Starting subtitle search, please wait...
[21:41] INFO::subdownloader.SDService.SDService # No subtitles were found on Opensubtitles.com
[21:41] INFO::subdownloader.cli.filter # No subtitle was downloaded "SomeMovie.720p.hdtv.x264.mkv". Maybe you already have it?

Only when I redirected the stderr to the same file (using '2>') did I get all the above logging in my output file.

I would have expected the above INFO logging to appear on stdout.

Revision history for this message
Alessandro Losavio (alo21) wrote :

Could you tell us how to reproduce the bug, please? In this way, we can confirm the bug, and also fix it.

For example:

1) Open the terminal
2) insert .....

Thanks

Revision history for this message
John Dutch (dutchguy1982) wrote :

1) Open the terminal
2) insert .....

$ subdownloader -c -q -V /media/Data/Videos/The\ Wire/The\ Wire\ 101\ -\ The\ Target.avi -l eng --rename-subs > stdout 2> stderr

$ ls -ltr
[...]
-rw-r--r-- 1 john john 0 2012-09-01 19:43 stdout
-rw-r--r-- 1 john john 634 2012-09-01 19:43 stderr

[Notice that stdout is 0 bytes.]

$ cat stderr
/usr/lib/python2.6/dist-packages/kaa/metadata/disc/cdrom.py:37: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
[19:43] INFO::subdownloader.cli.main # Scanning /media/Data/Videos/The Wire/The Wire 101 - The Target.avi ...
[19:43] INFO::subdownloader.cli.main # Videos found: 1 Subtitles found: 13
[19:43] INFO::subdownloader.cli.main # Looks like some of your videos might need subtitles :)
[19:43] INFO::subdownloader.cli.main # Starting subtitle search, please wait...
[19:43] INFO::subdownloader.cli.filter # No subtitle was downloaded "The Wire 101 - The Target.avi". Maybe you already have it?
$

So in this case I had expected all of this output to end up in 'stdout' instead of 'stderr'.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.