From 4394d0131bc99130b86a067f5319a77d2de5b1cd Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Mon, 4 Jan 2016 15:22:15 -0800 Subject: [PATCH] Only log ffmpeg output if encoding fails. --- app/Jobs/EncodeTrackFile.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Jobs/EncodeTrackFile.php b/app/Jobs/EncodeTrackFile.php index b56270d0..095af8ae 100644 --- a/app/Jobs/EncodeTrackFile.php +++ b/app/Jobs/EncodeTrackFile.php @@ -128,10 +128,9 @@ class EncodeTrackFile extends Job implements SelfHandling, ShouldQueue $process->mustRun(); } catch (ProcessFailedException $e) { Log::error('An exception occured in the encoding process for track file ' . $this->trackFile->id . ' - ' . $e->getMessage()); + Log::info($process->getOutput()); // Ensure queue fails throw $e; - } finally { - Log::info($process->getOutput()); } // Update the tags of the track