MTG / acousticbrainz-client

A client to upload data to an acousticbrainz server
GNU General Public License v3.0
29 stars 22 forks source link

error output should go to stderr #21

Open JonnyJD opened 10 years ago

JonnyJD commented 10 years ago

Currently errors like this:

[:( nombid ] /var/data/music/flac-db/Various Artists/1999: Fritz Hitz: Die beste Musik der Welt, Volume 0,5/00 - Butch Water - Obst.flac
Process step: Read metadata
  Cannot find musicbrainz recording id
Quitting early.

go to stdout. So something like abzsubmit /var/data/music/flac-db 2> error.log doesn't work.

alastair commented 10 years ago

Do you want the filename to go to the error log as well? (it already goes to stdout, where it should, but if we send the output to error we should send the filename too.

On 21 October 2014 17:03, Johannes Dewender notifications@github.com wrote:

Currently errors like this:

[:( nombid ] /var/data/music/flac-db/Various Artists/1999: Fritz Hitz: Die beste Musik der Welt, Volume 0,5/00 - Butch Water - Obst.flac Process step: Read metadata Cannot find musicbrainz recording id Quitting early.

go to stdout. So something like abzsubmit /var/data/music/flac-db 2> error.log doesn't work.

— Reply to this email directly or view it on GitHub https://github.com/MTG/acousticbrainz-client/issues/21.

JonnyJD commented 10 years ago

The filename should appear in stdout, but the stderr log should have enough info also without stdout. So we also need the filename there.