Skip to content

Commit

Permalink
Oops, logger would not catch output this way.
Browse files Browse the repository at this point in the history
  • Loading branch information
10se1ucgo committed Mar 13, 2016
1 parent a69d1df commit edd29ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ def run(self):
vol=self.vol))
try:
logger.info(convert_audio(track, file, self.rate, self.vol))
except subprocess.CalledProcessError:
except subprocess.CalledProcessError as e:
logging.exception("FFmpeg converter: Couldn't convert {track}".format(track=track))
logging.critical("FFmpeg converter: Error output log\n" + e.output.decode('ascii', 'replace'))
errors.append(track)
# File's headers aren't stripped, which normally would increase self.converted by 1.
self.converted += 1
Expand Down

0 comments on commit edd29ed

Please sign in to comment.