Only log ffmpeg output if encoding fails.

This commit is contained in:
Peter Deltchev 2016-01-04 15:22:15 -08:00
parent 0eb96f0e83
commit 4394d0131b

View file

@ -128,10 +128,9 @@ class EncodeTrackFile extends Job implements SelfHandling, ShouldQueue
$process->mustRun(); $process->mustRun();
} catch (ProcessFailedException $e) { } catch (ProcessFailedException $e) {
Log::error('An exception occured in the encoding process for track file ' . $this->trackFile->id . ' - ' . $e->getMessage()); Log::error('An exception occured in the encoding process for track file ' . $this->trackFile->id . ' - ' . $e->getMessage());
Log::info($process->getOutput());
// Ensure queue fails // Ensure queue fails
throw $e; throw $e;
} finally {
Log::info($process->getOutput());
} }
// Update the tags of the track // Update the tags of the track